diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d31a8355..57b160d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,18 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: 'recursive' # ensures submodules are cloned properly + token: ${{ secrets.PLUTO_GITHUB }} + fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v3 @@ -31,4 +38,4 @@ jobs: GH_TOKEN: ${{ secrets.PLUTO_GITHUB }} GITHUB_TOKEN: ${{ secrets.PLUTO_GITHUB }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release --dry-run + run: npx semantic-release