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 }}