Skip to content

Publish to NPM

Publish to NPM #3

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/build.yml@main
- name: Deploy package
if: github.ref == 'refs/heads/main'
run: npm publish --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}