File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Node-Rest-Client Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - feat/general-upgrade
6
+ workflow_dispatch :
7
+ jobs :
8
+ create-release-branch :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ with :
13
+ fetch-depth : 0
14
+ fetch-tags : true
15
+
16
+
17
+
18
+ # - id: #
19
+ # name: configure git
20
+ # run: |
21
+ # # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
22
+ # git --version
23
+ # git config user.name "GitHub Actions Bot"
24
+ # git config user.email "<>"
25
+ # git status
26
+ # git tag
27
+ # git describe
28
+
29
+ - id : readLatestTag
30
+ name : read latest tag
31
+ run : echo "latestTag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
32
+
33
+ - id : createReleaseBranch
34
+ name : create release branch
35
+ env :
36
+ RELEASE_TAG : ${{ steps.readLatestTag.outputs.latestTag }}
37
+ run : |
38
+ export BRANCH_NAME='release/$RELEASE_TAG'
39
+ git checkout -b $BRANCH_NAME
40
+ git push --set-upstream origin release/$RELEASE_TAG
41
+ # test
42
+ - id : changesetPR
43
+ name : Create Release Pull Request
44
+ uses : changesets/action@v1
45
+ with :
46
+ version : npm run version:packages
47
+
48
+
You can’t perform that action at this time.
0 commit comments