From babd3e0fea33fdaaf602c9e1c60cb907440e7a14 Mon Sep 17 00:00:00 2001 From: lisaavikarii <99261428+lisaavikarii@users.noreply.github.com> Date: Sun, 13 Feb 2022 21:02:36 +0100 Subject: [PATCH] publish script changes --- .github/workflows/npm-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index adb1d991..0e138c41 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 }}