v3.2.0 #21
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 is optional and if present must be used | |
# in the url path for badges | |
name: Publish to NPM | |
# only run when a release has been "published" | |
on: | |
release: | |
types: [released] | |
jobs: | |
# publish to npm on release | |
publish: | |
name: NPM Publish | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [17.5.0] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- run: npm install | |
- run: npm run build | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |