my
.npmrc
- //npm.pkg.github.com/:_authToken=GITHUB_TOKEN
+ //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@xgqfrms:registry=https://npm.pkg.github.com
https://github.com/xgqfrms/wcui/runs/7739940709?check_suite_focus=true#step:5:28
- without
${}
symbol wrapped
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
@xgqfrms:registry=https://npm.pkg.github.com
- with
${}
symbol wrapped
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@xgqfrms:registry=https://npm.pkg.github.com
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- copy from
npm tokens
https://www.npmjs.com/settings/xgqfrms/tokens
- just same as the
GITHUB_TOKEN
, which is GitHub Access Token
https://github.com/xgqfrms/wcui/blob/main/.github/workflows/npm-publish-github-packages.yml#L36
https://github.com/orgs/community/discussions/28844#discussioncomment-3355475