Skip to content

ci: add release and final tooling #1

ci: add release and final tooling

ci: add release and final tooling #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run lint
test:
runs-on: ubuntu-latest
name: Test
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run test
publish:
needs: [lint, test]
runs-on: ubuntu-latest
name: Publish
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- if: contains('refs/heads/main OR refs/heads/next', github.ref)
run: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}