diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4ed25968..a4bf0889 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -143,5 +143,9 @@ jobs: - name: Release env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ github.token }} + # You may be tempted to make this github.token, this won't work + # because GH Actions does not trigger workflows INCLUDING GITHUB PAGES RELEASES on github.token + # to avoid recursive workflows. + # See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow + GH_TOKEN: ${{ secrets.GH_TOKEN }} run: npx semantic-release