Skip to content

Commit 52c7c84

Browse files
author
Sakchai.Homhual
committed
chore: remove NODE_AUTH_TOKEN from NPM publish steps in workflows
1 parent cbfa251 commit 52c7c84

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/dev_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
publish:
88
environment: development
9+
permissions:
10+
id-token: write # Required for OIDC and npm.js Trusted Publishing
11+
contents: write
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Check out repository code
@@ -21,5 +24,3 @@ jobs:
2124

2225
- name: Publish to NPM
2326
run: npx lerna publish 0.0.0-dev.${{ github.run_id }}.${{ github.run_attempt }} --dist-tag dev --force-publish --exact --include-merged-tags --no-private --no-changelog --no-git-tag-version --no-push --yes
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/pre_release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,14 @@ jobs:
8383
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag next --force-publish --include-merged-tags --no-private --no-changelog --yes
8484
env:
8585
GH_TOKEN: ${{ secrets.GH_TOKEN }}
86-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8786

8887
- name: Publish to NPM (modified packages)
8988
if: ${{ inputs.version != 'premajor' }}
9089
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag next --include-merged-tags --no-private --no-changelog --yes
9190
env:
9291
GH_TOKEN: ${{ secrets.GH_TOKEN }}
93-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9492

9593
- name: Deprecate Solar Theme on npm
9694
run: |
9795
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
9896
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
99-
env:
100-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/prod_release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,11 @@ jobs:
9696

9797
- name: Publish to NPM
9898
run: npx lerna publish from-git --yes
99-
env:
100-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10199

102100
- name: Deprecate Solar Theme on npm
103101
run: |
104102
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
105103
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
106-
env:
107-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108104
109105
- name: Publish Docs
110106
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)