Skip to content

Commit

Permalink
ci: Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnieXu authored Oct 29, 2023
1 parent 86932a1 commit 6ce239d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
node-version: '18.x'
cache: 'npm'
- run: npm ci
- run: npm i
- run: npm run build

publish-npm:
Expand All @@ -29,7 +29,7 @@ jobs:
node-version: '18.x'
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm i
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand All @@ -48,7 +48,7 @@ jobs:
# cache: 'npm'
# registry-url: https://npm.pkg.github.com/
# scope: dinofe # 发布到 gpr 的组织名称必须和 github 仓库的组织名称保持一致(这里和 npm 的组织名称冲突,暂时不发布到 gpr)
# - run: npm ci
# - run: npm i
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 6ce239d

Please sign in to comment.