Skip to content

Commit

Permalink
Use a PAT for release
Browse files Browse the repository at this point in the history
  • Loading branch information
taranvohra committed Jan 9, 2024
1 parent 83bd61e commit a7e2098
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/grumpy-coats-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@gitbook/integration-github': patch
'@gitbook/integration-gitlab': patch
---

Release
2 changes: 1 addition & 1 deletion .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release integration to production

on:
release:
types: [created]
types: [published]

jobs:
deploy-integration-to-production:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7e2098

Please sign in to comment.