Skip to content

Commit c03229f

Browse files
authored
Merge pull request #1079 from BitGo/DX-2319
ci: migrate to OIDC Trusted Publishing
2 parents 50f51e5 + 98ea8c5 commit c03229f

File tree

4 files changed

+4170
-1333
lines changed

4 files changed

+4170
-1333
lines changed

.github/workflows/release.yaml

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

411
on:
512
push:
@@ -15,6 +22,7 @@ jobs:
1522
name: Release
1623
if: github.repository_owner == 'BitGo'
1724
runs-on: ubuntu-latest
25+
environment: publish-apits
1826

1927
steps:
2028
- name: Checkout
@@ -48,4 +56,3 @@ jobs:
4856
run: npx multi-semantic-release
4957
env:
5058
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)