Skip to content

Commit fe95b2d

Browse files
authored
πŸ‘· Update npm publish workflow (#342)
* πŸ‘· Update npm publish authentication method * ⬆️ Bump `node-version` to `16`
1 parent 3373ce3 commit fe95b2d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [14.x]
12+
node-version: [16.x]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Install Node.js ${{ matrix.node-version }}

β€Ž.github/workflows/npm-publish.ymlβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '14'
13+
node-version: '16'
1414
- name: Install dependencies πŸ“¦
1515
run: yarn
1616
- name: Publish package to NPM πŸš€
1717
env:
1818
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
19-
run: npm publish --token=${{ env.NPM_TOKEN }}
19+
run: |
20+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
21+
npm publish
2022
- name: Publish GitHub Release πŸ“
2123
uses: softprops/action-gh-release@v1
2224
with:

0 commit comments

Comments
Β (0)