publish script changes

This commit is contained in:
lisaavikarii 2022-02-13 21:02:36 +01:00
parent 574f3c97ba
commit babd3e0fea

View File

@ -13,15 +13,19 @@ jobs:
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node 12
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x
registry-url: https://registry.npmjs.org
- name: NPM Publish
run: |
if [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}