File tree Expand file tree Collapse file tree
template-files/.github/workflows Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -43,13 +43,22 @@ jobs:
4343 run : pnpm i
4444
4545 - name : Create Release Pull Request
46- id : changesets
4746 uses : changesets/action@v1
47+ id : changesets
4848 with :
49+ version : pnpm run version
4950 commit : " [ci] release"
5051 title : " [ci] release"
5152 env :
52- GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
53+ GITHUB_TOKEN : ${{ steps.generate_token.outputs.token}}
54+
55+ - name : Get published version
56+ if : steps.changesets.outputs.hasChangesets == 'true'
57+ run : |
58+ git checkout changeset-release/main
59+ VERSION=$(node -p "require('./package.json').version")
60+ git commit --amend -m "[ci] release ${{ env.IMAGE_NAME }} v$VERSION" --no-edit
61+ git push origin changeset-release/main:changeset-release/main --force
5362
5463 prepare-matrix :
5564 name : Prepare Matrix
Original file line number Diff line number Diff line change 2525 "path" : " template-files/.github/workflows/labeler.yaml" ,
2626 "targetPath" : " .github/workflows/labeler.yaml"
2727 },
28- {
29- "path" : " template-files/.github/workflows/release.yaml" ,
30- "targetPath" : " .github/workflows/release.yaml" ,
31- "props" : {
32- "branchName" : " main" ,
33- "projectFolder" : " "
34- }
35- },
3628 {
3729 "path" : " template-files/.github/workflows/welcome-bot.yaml" ,
3830 "targetPath" : " .github/workflows/welcome-bot.yaml" ,
Original file line number Diff line number Diff line change 5252 run : |
5353 git checkout changeset-release/main
5454 VERSION=$(node -p "require('.<%= projectFolder % >/package.json').version")
55- git commit --amend -m "[ci] release v$VERSION" --no-edit
55+ git commit --amend -m "[ci] release ${{ env.IMAGE_NAME }}<%= packageSuffix % > v$VERSION" --no-edit
5656 git push origin changeset-release/main:changeset-release/main --force
You can’t perform that action at this time.
0 commit comments