Skip to content

Commit 294c325

Browse files
fix(react): use npm token authentication for package publishing
1 parent 95ad5e2 commit 294c325

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-public-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ jobs:
214214
(env.PACKAGES_INPUT == 'both' || env.PACKAGES_INPUT == 'core')
215215
working-directory: ./packages/core
216216
env:
217-
NPM_CONFIG_PROVENANCE: true
217+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
218218
DRY_RUN: ${{ github.event.inputs.dry_run }}
219219
run: |
220220
current_version=$(node -p "require('./package.json').version")
@@ -228,7 +228,7 @@ jobs:
228228
229229
echo "Published @auth0/universal-components-core@$current_version (dry run)"
230230
else
231-
npm publish --provenance --access public --tag="$CORE_TAG"
231+
npm publish --access public --tag="$CORE_TAG"
232232
echo "published=true" >> $GITHUB_OUTPUT
233233
echo "version=$current_version" >> $GITHUB_OUTPUT
234234
echo "Published @auth0/universal-components-core@$current_version"
@@ -240,7 +240,7 @@ jobs:
240240
(env.PACKAGES_INPUT == 'both' || env.PACKAGES_INPUT == 'react')
241241
working-directory: ./packages/react
242242
env:
243-
NPM_CONFIG_PROVENANCE: true
243+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
244244
DRY_RUN: ${{ github.event.inputs.dry_run }}
245245
run: |
246246
current_version=$(node -p "require('./package.json').version")
@@ -252,7 +252,7 @@ jobs:
252252
echo "published=dry-run" >> $GITHUB_OUTPUT
253253
echo "version=$current_version" >> $GITHUB_OUTPUT
254254
else
255-
npm publish --provenance --access public --tag="$REACT_TAG"
255+
npm publish --access public --tag="$REACT_TAG"
256256
echo "published=true" >> $GITHUB_OUTPUT
257257
echo "version=$current_version" >> $GITHUB_OUTPUT
258258
echo "Published @auth0/universal-components-react@$current_version"

0 commit comments

Comments
 (0)