Skip to content

Commit 5455b8b

Browse files
chore(fix): use token fall back for npm publishing in wc (#1279)
* fix: add node_auth for npm release fallback * fix: indentation * chore(fix): try token as fallback
1 parent 1b89a22 commit 5455b8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-wc-and-playground.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
package: ./web-component/package.json
5555
access: public
5656
provenance: true
57+
token: ${{ secrets.NPM_TOKEN }}
5758
- name: Release web-component to NPM (feature branch tag)
5859
if: github.event.release.target_commitish != 'master'
5960
uses: JS-DevTools/npm-publish@1fe17a093199d8fabed85cbcc6f0f79eb06470da # using 4.1.0 version https://github.com/JS-DevTools/npm-publish/releases/tag/v4.1.0
@@ -62,8 +63,7 @@ jobs:
6263
access: public
6364
provenance: true
6465
tag: ${{ github.event.release.target_commitish }}
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
66+
token: ${{ secrets.NPM_TOKEN }}
6767
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
6868
name: Report workflow run status to Slack
6969
uses: 8398a7/action-slack@v3

0 commit comments

Comments
 (0)