Skip to content

Commit 9af2978

Browse files
author
Tanjeem Hossain
committed
ci: migrate to OIDC Trusted Publishing
Ticket: DX-2081
1 parent a6a473c commit 9af2978

3 files changed

Lines changed: 6833 additions & 4404 deletions

File tree

.github/workflows/main_ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
name: Run Tests
2+
permissions:
3+
# Needed for OIDC Trusted Publishing
4+
id-token: write
5+
# Needed for semantic-release
6+
contents: write
7+
pull-requests: write
8+
issues: write
29

310
on:
411
push:
@@ -71,6 +78,7 @@ jobs:
7178
release:
7279
if: github.repository_owner == 'BitGo' && github.event_name == 'push' && github.ref_name == 'master'
7380
runs-on: ubuntu-latest
81+
environment: publish-bip174
7482
needs:
7583
- audit
7684
- unit
@@ -82,10 +90,12 @@ jobs:
8290
- uses: actions/checkout@v3
8391
- uses: actions/setup-node@v3
8492
with:
85-
node-version: 14
93+
node-version: 22
8694
cache: 'npm'
95+
- name: Ensure npm 11.5.1
96+
run: |
97+
npm install -g npm@11.5.1
8798
- run: npm ci
8899
- run: ./node_modules/.bin/semantic-release
89100
env:
90-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
91101
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)