Skip to content

Commit ff9ec1d

Browse files
committed
fix: 修改 publish action
1 parent e90afa3 commit ff9ec1d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ jobs:
1111
with:
1212
node-version: '16.x'
1313
registry-url: 'https://registry.npmjs.org'
14+
- name: Git Identity
15+
run: |
16+
git config --global user.name 'github-actions[bot]'
17+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
18+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1421
- run: yarn
15-
- run: yarn publish
22+
- run: yarn release
1623
env:
1724
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)