Skip to content

Commit 9709f76

Browse files
author
Sakchai.Homhual
committed
chore: fix NODE_AUTH_TOKEN environment variable for deprecation script in release workflows
1 parent 35b1dce commit 9709f76

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/pre_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ jobs:
9494
run: |
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
97+
env:
98+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/prod_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
run: |
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
104+
env:
105+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104106

105107
- name: Publish Docs
106108
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)