fix: npm publish install

This commit is contained in:
Dolan Miu
2024-10-14 01:47:59 +01:00
parent e8564d58c6
commit 6e371d42a7

View File

@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: "20.x" node-version: "20.x"
- run: npm ci - run: npm ci --force
- run: npm run cspell - run: npm run cspell
- run: npm run prettier - run: npm run prettier
- run: npm run lint - run: npm run lint
@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: "20.x" node-version: "20.x"
- run: npm ci - run: npm ci --force
- run: npm run build - run: npm run build
publish-npm: publish-npm:
@ -40,7 +40,7 @@ jobs:
with: with:
node-version: "20.x" node-version: "20.x"
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm ci - run: npm ci --force
- run: npm publish - run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}} NODE_AUTH_TOKEN: ${{secrets.npm_token}}