-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use github token and actor rather than personal token
- Loading branch information
Showing
1 changed file
with
10 additions
and
9 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 |
---|---|---|
|
@@ -31,18 +31,15 @@ jobs: | |
echo $new_branch_name | ||
echo "::set-output name=formatted_branch_name::$new_branch_name" | ||
# Git config | ||
- run: git config --global user.email "[email protected]" && git config --global user.name "jackhowa" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_AUTH_TOKEN_READ_WRITE }} | ||
- name: Version with formatted preid | ||
run: npm version prerelease --preid=${{ steps.format_branch_step.outputs.formatted_branch_name }} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "$GITHUB_ACTOR" | ||
npm version prerelease --preid=${{ steps.format_branch_step.outputs.formatted_branch_name }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
- name: Publish to target tag | ||
run: npm publish --tag ${{ env.SYNCED_RELEASE_TAG }} | ||
env: | ||
|
@@ -71,7 +68,11 @@ jobs: | |
registry-url: 'https://npm.pkg.github.com' | ||
|
||
- name: Tag 1.x release with canary | ||
run: npm dist-tag add @wpmedia/news-theme-css@$(npm view @wpmedia/news-theme-css@${{ env.SYNCED_RELEASE_TAG }} version) canary | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "$GITHUB_ACTOR" | ||
npm dist-tag add @wpmedia/news-theme-css@$(npm view @wpmedia/news-theme-css@${{ env.SYNCED_RELEASE_TAG }} version) canary | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_AUTH_TOKEN_READ_WRITE }} | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|