chore(workflows/publish-docs): update config

This commit is contained in:
JackLian 2023-12-14 14:13:58 +08:00
parent cdcc8c8a90
commit b56a2a9274

View File

@ -16,7 +16,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
ref: 'develop'
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: cd docs && npm install
- run: |
@ -27,7 +28,7 @@ jobs:
git add package.json
git commit -m "chore(docs): publish documentation"
git push
- run: cd docs && npm build && npm publish
- run: cd docs && npm run build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Get version