Skip to content

Commit a5fec23

Browse files
authored
👷 Update npm publish workflow (#884)
* 👷 Update npm publish authentication method * ⬆️ Bump `node-version` to `16`
1 parent 8de101b commit a5fec23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ jobs:
1414
uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1
1616
with:
17-
node-version: '14.x'
17+
node-version: '16.x'
1818
- name: Build
1919
run: |
2020
yarn install --ignore-scripts
2121
yarn build
2222
- name: Publish package to NPM 🚀
2323
env:
2424
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
25-
run: npm publish --token=${{ env.NPM_TOKEN }}
25+
run: |
26+
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
27+
npm publish
2628
- name: Package
2729
run: yarn package
2830
- name: Create Release

0 commit comments

Comments
 (0)