We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d9299 commit 9c454b9Copy full SHA for 9c454b9
.github/workflows.yml
@@ -1,22 +1,19 @@
1
name: NPM publish
2
-
3
on:
4
push:
5
tags:
6
- '*'
7
8
jobs:
9
- npm-publish:
+ build:
10
runs-on: ubuntu-latest
11
12
steps:
13
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
+ # Setup .npmrc file to publish to npm
+ - uses: actions/setup-node@v3
14
with:
15
- ref: ${{ github.event.release.target_commitish }}
16
- - uses: actions/setup-node@v1
17
- with:
18
- node-version: 12
19
- - run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
+ node-version: '16.x'
+ registry-url: 'https://registry.npmjs.org'
+ - run: npm ci
20
- run: npm publish
21
env:
22
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments