mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Use internal bot for versioning (#643)
* Use internal bot for versioning * tweak `CODEOWNERS`
This commit is contained in:
+5
-5
@@ -1,5 +1,5 @@
|
|||||||
/.github/workflows/** @Andarist @emmatown
|
/.github/workflows/** @Andarist @bluwy @emmatown
|
||||||
/action.yml @Andarist @emmatown
|
/action.yml @Andarist @bluwy @emmatown
|
||||||
/scripts/bump.ts @Andarist @emmatown
|
/scripts/bump.ts @Andarist @bluwy @emmatown
|
||||||
/scripts/release.ts @Andarist @emmatown
|
/scripts/release.ts @Andarist @bluwy @emmatown
|
||||||
/scripts/release-pr.ts @Andarist @emmatown
|
/scripts/release-pr.ts @Andarist @bluwy @emmatown
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ jobs:
|
|||||||
version:
|
version:
|
||||||
name: Version
|
name: Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: version
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
outputs:
|
outputs:
|
||||||
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
|
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
|
||||||
@@ -36,10 +37,17 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
client-id: ${{ vars.APP_CLIENT_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Create or update release pull request
|
- name: Create or update release pull request
|
||||||
id: changesets
|
id: changesets
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ steps.app-token.outputs.token }}
|
||||||
version: pnpm bump
|
version: pnpm bump
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
|
|||||||
Reference in New Issue
Block a user