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()
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}