Skip to content

Commit e8c9870

Browse files
authored
build: Update the release workflow to use OIDC. (#673)
Also make other smaller updates to modernize the release file.
1 parent 4e8edbe commit e8c9870

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
- next
77
- beta
88
- alpha
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write # For Semantic Release tagging
13+
914
jobs:
1015
release:
1116
name: Release
@@ -26,9 +31,6 @@ jobs:
2631
- name: Test
2732
run: npm run test
2833
- name: Release
29-
uses: cycjimmy/semantic-release-action@v2
30-
with:
31-
semantic_version: 16
34+
run: npx semantic-release@25
3235
env:
33-
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN}}
34-
NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)