Skip to content

Commit 020e8cc

Browse files
authored
Use internal bot for versioning (#643)
* Use internal bot for versioning * tweak `CODEOWNERS`
1 parent b072bcc commit 020e8cc

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/CODEOWNERS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/.github/workflows/** @Andarist @emmatown
2-
/action.yml @Andarist @emmatown
3-
/scripts/bump.ts @Andarist @emmatown
4-
/scripts/release.ts @Andarist @emmatown
5-
/scripts/release-pr.ts @Andarist @emmatown
1+
/.github/workflows/** @Andarist @bluwy @emmatown
2+
/action.yml @Andarist @bluwy @emmatown
3+
/scripts/bump.ts @Andarist @bluwy @emmatown
4+
/scripts/release.ts @Andarist @bluwy @emmatown
5+
/scripts/release-pr.ts @Andarist @bluwy @emmatown

.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: 20
2021
outputs:
2122
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
@@ -36,10 +37,17 @@ jobs:
3637
- name: Build
3738
run: pnpm build
3839

40+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
41+
id: app-token
42+
with:
43+
client-id: ${{ vars.APP_CLIENT_ID }}
44+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
45+
3946
- name: Create or update release pull request
4047
id: changesets
4148
uses: ./
4249
with:
50+
github-token: ${{ steps.app-token.outputs.token }}
4351
version: pnpm bump
4452

4553
publish:

0 commit comments

Comments
 (0)