Skip to content

Commit 0a70111

Browse files
author
Sakchai.Homhual
committed
ci: update NODE_AUTH_TOKEN to use NPM_DEPRECATION_TOKEN for deprecation commands
1 parent 9709f76 commit 0a70111

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pre_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,5 @@ jobs:
9595
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
9696
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
9797
env:
98-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
98+
# The granular access token is required because GitHub/npm.js OIDC does not work with npm deprecate command.
99+
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPRECATION_TOKEN }}

.github/workflows/prod_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ jobs:
102102
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
103103
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
104104
env:
105-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
105+
# The granular access token is required because GitHub/npm.js OIDC does not work with npm deprecate command.
106+
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPRECATION_TOKEN }}
106107

107108
- name: Publish Docs
108109
run: curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/${{ secrets.CF_DEPLOY_HOOKS_ID_V7 }}"

0 commit comments

Comments
 (0)