publish script changes
This commit is contained in:
parent
574f3c97ba
commit
babd3e0fea
8
.github/workflows/npm-publish.yml
vendored
8
.github/workflows/npm-publish.yml
vendored
@ -13,15 +13,19 @@ jobs:
|
|||||||
- name: Begin CI...
|
- name: Begin CI...
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Use Node 12
|
- name: Use Node 16
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 16.x
|
||||||
registry-url: https://registry.npmjs.org
|
registry-url: https://registry.npmjs.org
|
||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
run: |
|
run: |
|
||||||
|
if [ -e package-lock.json ]; then
|
||||||
npm ci
|
npm ci
|
||||||
|
else
|
||||||
|
npm i
|
||||||
|
fi
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user