You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: update npm to latest version in main branch check workflow
* chore: update npm engine version to >=11.5.1 in package.json files
* chore: add permissions for OIDC and npm.js Trusted Publishing in production and pre release workflow
* chore: move npm update step to setup action for consistency
* chore: remove NODE_AUTH_TOKEN from NPM publish steps in workflows
* chore: update SonarCloud scan action to version 6
---------
Co-authored-by: Sakchai.Homhual <[email protected]>
Copy file name to clipboardExpand all lines: .github/workflows/pre_release.yml
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,9 @@ jobs:
57
57
name: Publish
58
58
needs: test
59
59
environment: development
60
+
permissions:
61
+
id-token: write # Required for OIDC and npm.js Trusted Publishing
62
+
contents: write
60
63
runs-on: ubuntu-latest
61
64
steps:
62
65
- name: Check out repository code
@@ -80,18 +83,14 @@ jobs:
80
83
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag next --force-publish --include-merged-tags --no-private --no-changelog --yes
81
84
env:
82
85
GH_TOKEN: ${{ secrets.GH_TOKEN }}
83
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
84
86
85
87
- name: Publish to NPM (modified packages)
86
88
if: ${{ inputs.version != 'premajor' }}
87
89
run: npx lerna publish ${{ inputs.version }} --preid next --dist-tag next --include-merged-tags --no-private --no-changelog --yes
88
90
env:
89
91
GH_TOKEN: ${{ secrets.GH_TOKEN }}
90
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
91
92
92
93
- name: Deprecate Solar Theme on npm
93
94
run: |
94
95
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
95
96
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
Copy file name to clipboardExpand all lines: .github/workflows/prod_release.yml
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,9 @@ jobs:
57
57
environment:
58
58
name: production
59
59
url: https://ui.refinitiv.com
60
+
permissions:
61
+
id-token: write # Required for OIDC and npm.js Trusted Publishing
62
+
contents: write
60
63
runs-on: ubuntu-latest
61
64
steps:
62
65
- name: Check out repository code
@@ -93,15 +96,11 @@ jobs:
93
96
94
97
- name: Publish to NPM
95
98
run: npx lerna publish from-git --yes
96
-
env:
97
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
98
99
99
100
- name: Deprecate Solar Theme on npm
100
101
run: |
101
102
DEPRECATION_MESSAGE=$(npm info @refinitiv-ui/solar-theme deprecated)
102
103
if [[ -z $DEPRECATION_MESSAGE ]]; then npm deprecate @refinitiv-ui/solar-theme "Solar theme is deprecated. Consider migrating to @refinitiv-ui/halo-theme instead."; fi
103
-
env:
104
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
105
104
106
105
- name: Publish Docs
107
106
run: curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/${{ secrets.CF_DEPLOY_HOOKS_ID_V7 }}"
0 commit comments