Skip to content

Commit

Permalink
modify actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanfeijie committed Apr 23, 2024
1 parent 2bc8a87 commit 293a3fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pre-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ jobs:
run: npm publish --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}


- name: Package specific files
run: |
# 指定打包的文件和文件夹
# 假设我们想要打包 package.json, dist 文件夹以及 LICENSE 文件
zip -r my-archive.zip ./package.json ./dist ./LICENSE
ls -al
- uses: dorny/paths-filter@v3
id: changes
with:
Expand All @@ -60,7 +66,7 @@ jobs:
- rollup.config.js
- tsconfig.json
- .babelrc
- name: Repository Dispatch
if: steps.changes.outputs.update == 'true'
uses: peter-evans/repository-dispatch@v3
Expand Down

0 comments on commit 293a3fa

Please sign in to comment.