2.5.1 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish NPM package | |
# This workflow runs every time a version tag is pushed | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
# Publish the npm package | |
publish: | |
name: Publish package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm publish --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |