Skip to content

Commit

Permalink
feat: 🎸 update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaohaoyang committed Aug 23, 2024
1 parent f47218c commit c21ca3f
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,22 @@ jobs:

- run: pnpm i
if: steps.check.outputs.changed == 'true'
# 发布命令

- run: pnpm run build && pnpm publish
- run: pnpm run build
if: steps.check.outputs.changed == 'true'
env:
# npm_token 就是刚刚填写 token 时取的名字
NODE_AUTH_TOKEN: ${{ secrets.NPMPUBHAOYANG }}
NPM_CONFIG_PROVENANCE: true
- name: Create a tag
uses: salsify/action-detect-and-tag-new-version@v2

- name: zip
if: steps.check.outputs.changed == 'true'
uses: montudor/action-zip@v1
with:
args: zip -qq -r dist.zip dist

- run: npx changelogithub
- name: Upload & release
if: steps.check.outputs.changed == 'true'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: mnao305/chrome-extension-upload@v5.0.0
with:
file-path: dist.zip
extension-id: hibclclepijigjnfdkmkfhjogfhgicda
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
refresh-token: ${{ secrets.REFRESH_TOKEN }}

0 comments on commit c21ca3f

Please sign in to comment.