Skip to content

Commit 91d8b81

Browse files
authored
Revert "Revert "Update release.yml (#684)" (#685)"
This reverts commit 4a1ca4d.
1 parent 66cbc51 commit 91d8b81

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Javascript Wrapper Release
23

34
on:
@@ -50,7 +51,6 @@ jobs:
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

0 commit comments

Comments
 (0)