From 50afaef22031a9e50a3d713f48844b951de0b5ac Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Tue, 27 Jan 2026 10:53:00 -0300 Subject: [PATCH] build: Update the release workflow to use OIDC. Also make other smaller updates to modernize the release file. --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81e2822..6419756 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,25 +6,25 @@ on: - next - beta - alpha + +permissions: + id-token: write # Required for OIDC + contents: write # For Semantic Release tagging + jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Nodejs Env - run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: ${{ env.NODE_VER }} + node-version-file: '.nvmrc' - name: Release - uses: cycjimmy/semantic-release-action@v2 - with: - semantic_version: 16 + run: npx semantic-release@25 env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}