Skip to content

Commit

Permalink
Merge pull request #35 from LilyLoveLife/master
Browse files Browse the repository at this point in the history
feat: optimize the githubAction workflow
  • Loading branch information
LilyLoveLife authored May 1, 2024
2 parents f2652eb + 2a3d767 commit 604fac6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-glasses-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"i18n-react-quick-deal": patch
---

Optimze githubActions workflow
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ jobs:
run: npm install
- name: 构建
run: npm run build
- name: 合并版本
- name: 合并版本,发布
uses: changesets/action@v1
with:
version: npx changeset version
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: 发布
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# NPM_TOKEN: ${{secrets.NPM_TOKEN}}
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# - name: 发布
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 604fac6

Please sign in to comment.