ci: update workflows config.

pull/460/head
jaywcjlove 1 year ago
parent f9c6e3a754
commit 06c01f2a73

@ -12,11 +12,14 @@ env:
jobs: jobs:
build-deploy: build-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
# - name: Cache dependencies # - name: Cache dependencies
@ -101,7 +104,7 @@ jobs:
# - run: npm install @jsdevtools/npm-publish -g # - run: npm install @jsdevtools/npm-publish -g
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
- run: npm publish --access public - run: npm publish --access public --provenance
name: 📦 hotkeys-js to NPM name: 📦 hotkeys-js to NPM
continue-on-error: true continue-on-error: true
env: env:

Loading…
Cancel
Save