更换 action
This commit is contained in:
parent
98ff7de56a
commit
28035a8513
22
.github/workflows/npm-publish.yml
vendored
22
.github/workflows/npm-publish.yml
vendored
@ -15,18 +15,12 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
registry-url: https://registry.npmjs.org
|
||||||
- run: npm run build
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
publish-npm:
|
- name: Build
|
||||||
needs: build
|
run: npm run build
|
||||||
runs-on: ubuntu-latest
|
- name: Publish package to npm
|
||||||
steps:
|
run: npm publish
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
registry-url: https://registry.npmjs.org/
|
|
||||||
- run: npm publish
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
|
||||||
|
Loading…
Reference in New Issue
Block a user