Skip to content

publish

publish #1

Workflow file for this run

name: publish
on: [workflow_dispatch]
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup-engines
- name: Build
run: pnpm build
- name: Test
run: pnpm test
publish:
needs: [build_test]
name: (only on release) Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-engines
- name: Publish
if: success()
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}