Skip to main content
Go to Latest
# This workflow will run tests using node and then publish packages to NPM Packages when a release is created
name: Publish Node.js Packages
on: #release: # types: [created] workflow_dispatch:
jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: 16 registry-url: - run: npm install - run: npm run build - run: npm run set-version ${{ github.event.release.tag_name }} - run: npm run publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}