-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: test npm publish workflow ci: test npm publish workflow ci: remove incorrect matrix ci: npm publish wotkflow use admin token ci: npm publish wotkflow use admin token ci: use create pr instead of push to avoid protected rule
- Loading branch information
1 parent
9c746c7
commit 9dc32ab
Showing
2 changed files
with
8 additions
and
8 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 |
---|---|---|
|
@@ -7,8 +7,8 @@ on: | |
- published | ||
|
||
jobs: | ||
build: | ||
|
||
publish: | ||
name: Publish to NPM & Create Pull Request of Version Update | ||
# Run on latest version of ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -31,6 +31,7 @@ jobs: | |
- run: git config --global user.name "Artus Version Bot" | ||
- run: git config --global user.email "[email protected]" | ||
# upgrade npm version in package.json to the tag used in the release. | ||
# upgrade npm version in package.json to the tag used in the release. | ||
- run: npm version ${{ github.event.release.tag_name }} | ||
# build the project | ||
- run: npm run build | ||
|
@@ -46,8 +47,7 @@ jobs: | |
if: "github.event.release.prerelease" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# push the version changes to GitHub | ||
- run: git push | ||
env: | ||
# The secret is passed automatically. Nothing to configure. | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
title: "[Version] ${{ github.event.release.tag_name }}" |
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 |
---|---|---|
|
@@ -41,6 +41,6 @@ | |
}, | ||
"ci": { | ||
"type": "github", | ||
"version": "12, 14, 16" | ||
"version": "16" | ||
} | ||
} |