File tree Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Original file line number Diff line number Diff line change 1+
12name : Javascript Wrapper Release
23
34on :
5051 runs-on : ubuntu-latest
5152 env :
5253 GITHUB_TOKEN : ${{ secrets.OR_GITHUB_TOKEN }}
53- BRANCH_NAME : npm-version-patch
5454 steps :
5555
5656 # CHECKOUT PROJECT
@@ -91,39 +91,11 @@ jobs:
9191 run : |
9292 npm ci
9393 npm run build
94-
95- # # PUSH TAG
96- # - name: Push tag
97- # run: git push --tags
98-
99- # CREATE PR FOR VERSION AND TAG CHANGES
100- - name : Create Pull Request
101- id : create_pr
102- if : inputs.dev == false
103- uses : peter-evans/create-pull-request@v6.0.5
104- with :
105- token : ${{ env.GITHUB_TOKEN }}
106- branch : ${{ env.BRANCH_NAME }}
107- title : " Update Version - Automated Changes"
108- body : " This is an automated PR created by GitHub Actions"
109- base : main
110- draft : false
111-
112- # WAIT FOR PR CREATION
113- - name : Wait for PR to be created
114- id : pr
115- if : inputs.dev == false
116- uses : octokit/request-action@v2.3.1
117- with :
118- route : GET /repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ env.BRANCH_NAME }}
11994
120- # MERGE PR TO MAIN
121- - name : Merge Pull Request
95+ # PUSH TAGS IF IT IS A RELEASE
96+ - name : Push tag if release
12297 if : inputs.dev == false
123- uses : octokit/request-action@v2.3.1
124- with :
125- route : PUT /repos/${{ github.repository }}/pulls/${{ steps.create_pr.outputs.pull-request-number }}/merge
126- merge_method : squash
98+ run : git push && git push --tags
12799
128100 # PUBLISH NPM PACKAGE
129101 - name : Publish npm package
You can’t perform that action at this time.
0 commit comments