Skip to content

Commit 9122374

Browse files
authored
build: Update the release workflow to use OIDC. (#62)
Also make other smaller updates to modernize the release file.
1 parent 39ce5f0 commit 9122374

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ on:
44
tags:
55
- '*'
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: write # For Semantic Release tagging
10+
711
jobs:
812
release:
913
name: Release
1014
runs-on: ubuntu-latest
1115
steps:
1216
- name: Checkout
13-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1418
with:
1519
fetch-depth: 0
1620

@@ -26,8 +30,6 @@ jobs:
2630
run: npm run build
2731

2832
- name: Release Package
29-
uses: cycjimmy/semantic-release-action@v2
30-
with:
31-
semantic_version: 16
33+
run: npx semantic-release@25
3234
env:
33-
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)