-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moved to es2021 * moved to es2021 * fix * . * . * . * . * /
- Loading branch information
1 parent
a631064
commit 8423d65
Showing
1 changed file
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,11 +85,6 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.SLDEVOPSD_PAT }} | ||
|
||
- name: Bump version | ||
run: | | ||
npm version patch -m "Bump version to %s" | ||
git push | ||
git push --tags | ||
- name: Output user info | ||
run: | | ||
echo "Response: ${{ fromJson(steps.get_user.outputs.data) }}" | ||
|
@@ -101,6 +96,29 @@ jobs: | |
npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SLDEVOPSD_PAT }} | ||
- name: Create Release Branch | ||
run: | | ||
git checkout -b release-${{ github.sha }} | ||
npm version patch -m "Bump version to %s" | ||
git push origin release-${{ github.sha }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SLDEVOPSD_PAT }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: 'Bump version' | ||
body: 'Automated version bump' | ||
branch: release-${{ github.sha }} | ||
base: main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SLDEVOPSD_PAT }} | ||
- name: Push changes | ||
run: | | ||
git push --follow-tags | ||
|