diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 1baf7b1a..2d5c2ef6 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -5,6 +5,10 @@ on: - cron: '50 18 * * *' workflow_dispatch: +permissions: + id-token: write # Required for OIDC + contents: read + jobs: get-branches: runs-on: ubuntu-latest @@ -41,8 +45,6 @@ jobs: strategy: fail-fast: false matrix: ${{ fromJSON(needs.get-branches.outputs.matrix) }} - env: - NPM_SECRET: ${{ secrets.NPM_SECRET }} steps: - name: Checkout ${{ matrix.branch }} @@ -53,7 +55,9 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7.1.0 with: - node-version: 22.x + node-version: 24.x + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds - name: Cache dependencies uses: actions/cache@v6 @@ -80,8 +84,7 @@ jobs: - name: Publish uses: JS-DevTools/npm-publish@v4 - if: ${{ env.NPM_SECRET != '' && env.LAST_COMMITS != 0 }} + if: ${{ env.LAST_COMMITS != 0 }} with: - token: ${{ env.NPM_SECRET }} tag: ${{ matrix.tag }} access: public