Skip to content

Commit 2fcc9da

Browse files
Revert "Update release.yml (#690)" (#693)
This reverts commit da00d5c.
1 parent 172bfb8 commit 2fcc9da

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
runs-on: ubuntu-latest
5252
env:
5353
GITHUB_TOKEN: ${{ secrets.OR_GITHUB_TOKEN }}
54-
BRANCH_NAME: npm-version-patch
5554
steps:
5655

5756
# CHECKOUT PROJECT
@@ -94,40 +93,9 @@ jobs:
9493
npm run build
9594
9695
# PUSH TAGS IF IT IS A RELEASE
97-
- name: Push tag
96+
- name: Push tag if release
9897
if: inputs.dev == false
99-
run: |
100-
git pull
101-
git push --tags
102-
103-
# CREATE PR FOR VERSION AND TAG CHANGES
104-
- name: Create Pull Request
105-
id: create_pr
106-
if: inputs.dev == false
107-
uses: peter-evans/[email protected]
108-
with:
109-
token: ${{ env.GITHUB_TOKEN }}
110-
branch: ${{ env.BRANCH_NAME }}
111-
title: "Update Version - Automated Changes"
112-
body: "This is an automated PR created by GitHub Actions"
113-
base: main
114-
draft: false
115-
116-
# WAIT FOR PR CREATION
117-
- name: Wait for PR to be created
118-
id: pr
119-
if: inputs.dev == false
120-
uses: octokit/[email protected]
121-
with:
122-
route: GET /repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ env.BRANCH_NAME }}
123-
124-
# MERGE PR TO MAIN
125-
- name: Merge Pull Request
126-
if: inputs.dev == false
127-
uses: octokit/[email protected]
128-
with:
129-
route: PUT /repos/${{ github.repository }}/pulls/${{ steps.create_pr.outputs.pull-request-number }}/merge
130-
merge_method: squash
98+
run: git push && git push --tags
13199

132100
# PUBLISH NPM PACKAGE
133101
- name: Publish npm package

0 commit comments

Comments
 (0)