diff --git a/.changeset/grumpy-coats-remember.md b/.changeset/grumpy-coats-remember.md new file mode 100644 index 000000000..46407469e --- /dev/null +++ b/.changeset/grumpy-coats-remember.md @@ -0,0 +1,6 @@ +--- +'@gitbook/integration-github': patch +'@gitbook/integration-gitlab': patch +--- + +Release diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index b5f820d8d..5dde2970c 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -2,7 +2,7 @@ name: Release integration to production on: release: - types: [created] + types: [published] jobs: deploy-integration-to-production: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 502d71eeb..cd2f18f52 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,7 +32,9 @@ jobs: with: publish: npm run release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Using a PAT instead of GITHUB_TOKEN because we need to run workflows when releases are created + # https://github.com/orgs/community/discussions/26875#discussioncomment-3253761 + GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} publish-integrations-staging: