Skip to content

Commit 46c47d5

Browse files
authored
ci: migrate from using npm tokens to oicd (#1874)
* ci: migrate from using npm tokens to oicd * address bugbot comments
1 parent 7254c31 commit 46c47d5

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
id-token: write
17-
contents: read
17+
contents: write
18+
pull-requests: write
19+
issues: write
1820
steps:
1921
- name: Get Tokens
2022
uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0
2123
with:
2224
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
2325
ssm_parameter_pairs: |
24-
/production/common/launchpad-ui/gh-pat-token = CUSTOM_GITHUB_TOKEN,
25-
/production/common/releasing/npm/token = NODE_AUTH_TOKEN
26+
/production/common/launchpad-ui/gh-pat-token = CUSTOM_GITHUB_TOKEN
2627
2728
- uses: actions/checkout@v6
2829
with:
@@ -38,9 +39,12 @@ jobs:
3839
- name: Setup Node
3940
uses: actions/setup-node@v6
4041
with:
41-
node-version: 22
42+
node-version: 22.14.0
4243
cache: pnpm
4344

45+
- name: Upgrade npm
46+
run: npm install -g npm@11.5.1
47+
4448
- name: Install Dependencies
4549
run: pnpm install
4650

@@ -53,5 +57,4 @@ jobs:
5357
cwd: ${{ github.workspace }}
5458
env:
5559
GITHUB_TOKEN: ${{ env.CUSTOM_GITHUB_TOKEN }}
56-
NPM_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
5760
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
"not dead",
8383
"not IE 11"
8484
],
85+
"engines": {
86+
"node": ">=22.14.0",
87+
"npm": ">=11.5.1"
88+
},
8589
"packageManager": "pnpm@10.12.4",
8690
"pnpm": {
8791
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)