-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbed703
commit c221579
Showing
1 changed file
with
10 additions
and
4 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 |
---|---|---|
|
@@ -25,7 +25,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.push_token }} | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@master | ||
|
@@ -34,7 +35,12 @@ jobs: | |
|
||
- name: Bump npm version | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "[email protected].github.com" | ||
git config --local user.name "GitHub Action" | ||
git config --local user.email "action@github.com" | ||
npm version ${{ github.event.inputs.type }} | ||
git push | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} |