Skip to content

Commit 230378a

Browse files
authored
Use internal bot for versioning (#80)
1 parent a000b14 commit 230378a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
version:
1717
name: Version
1818
runs-on: ubuntu-latest
19+
environment: version
1920
timeout-minutes: 10
2021
outputs:
2122
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
@@ -32,10 +33,17 @@ jobs:
3233
with:
3334
skip-cache: true # avoid cache poisoning attacks
3435

36+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
37+
id: app-token
38+
with:
39+
client-id: ${{ vars.APP_CLIENT_ID }}
40+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
41+
3542
- name: Create or update release pull request
3643
id: changesets
3744
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0
3845
with:
46+
github-token: ${{ steps.app-token.outputs.token }}
3947
version: pnpm version-packages
4048

4149
publish:

0 commit comments

Comments
 (0)