From 94f98b37b0b1c89e40a618cdbf51539e34ad41e4 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:13:20 +0000 Subject: [PATCH] use PAT instead of gitHub.token for release so github pages is deployed --- .github/workflows/nodejs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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