diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c96b4e4..8dce3fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,11 @@ on: push: branches: - main + +permissions: + id-token: write # Required for OIDC + contents: write # For Semantic Release tagging + jobs: release: name: Release @@ -12,12 +17,10 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 - - name: Setup Nodejs Env - run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: ${{ env.NODE_VER }} + node-version-file: '.nvmrc' - name: Install dependencies run: npm ci - name: Validate package-lock.json changes @@ -29,7 +32,6 @@ jobs: - name: Build run: npm run build - name: Release + run: npx semantic-release@25 env: GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release@22