File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 7
7
release-please :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
+ # 生成changle log 和 提交/更新release pr
10
11
- uses : GoogleCloudPlatform/release-please-action@v2
11
12
with :
12
13
token : ${{ secrets.GITHUB_TOKEN }}
13
14
release-type : node
14
- package-name : release-please-action
15
+ package-name : release-please-action
16
+ # 自动打tag
17
+ - uses : actions/checkout@v2
18
+ - name : tag major and patch versions
19
+ if : ${{ steps.release.outputs.release_created }}
20
+ run : |
21
+ git config user.name github-actions[bot]
22
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
23
+ git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/google-github-actions/release-please-action.git"
24
+ git tag -d v${{ steps.release.outputs.major }} || true
25
+ git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
26
+ git push origin :v${{ steps.release.outputs.major }} || true
27
+ git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
28
+ git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
29
+ git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
30
+ git push origin v${{ steps.release.outputs.major }}
31
+ git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
You can’t perform that action at this time.
0 commit comments