diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8d7616c..afab575 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -25,10 +25,10 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇️ Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: ⎔ Setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} @@ -48,16 +48,21 @@ jobs: release: needs: main runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + id-token: write # to enable use of OIDC for npm provenance + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests if: ${{ github.repository == 'kentcdodds/match-sorter' && contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', github.ref) && github.event_name == 'push' }} steps: - name: ⬇️ Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: ⎔ Setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: lts/* @@ -72,8 +77,9 @@ jobs: run: npm run build - name: 🚀 Release - uses: cycjimmy/semantic-release-action@v4 + uses: cycjimmy/semantic-release-action@v5.0.2 with: + semantic_version: 25 branches: | [ '+([0-9])?(.{+([0-9]),x}).x', @@ -85,4 +91,3 @@ jobs: ] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}