diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index adb1d99..0e138c4 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 }}