Skip to content

Commit

Permalink
ci: Use github token and actor rather than personal token
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHowa committed Apr 8, 2022
1 parent d758bd4 commit 9c7992b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/sync-themes-branch-with-themes-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}


0 comments on commit 9c7992b

Please sign in to comment.