Skip to content

Commit

Permalink
fix: 修改 publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
soulhat committed Mar 10, 2023
1 parent e90afa3 commit ff9ec1d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Git Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn
- run: yarn publish
- run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ff9ec1d

Please sign in to comment.