From d05ecdd1329ea4f5c49d618afeb88b18a13a7585 Mon Sep 17 00:00:00 2001 From: jspc Date: Mon, 29 Nov 2021 16:13:20 +0000 Subject: [PATCH] Ensure publish runs on tag --- .github/workflows/main.yaml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 190a140..6620d3c 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -22,7 +22,7 @@ jobs: CI: true publish: - if:contains(github.ref, 'refs/tags') + if: contains(github.ref, 'refs/tags') needs: build runs-on: ubuntu-latest steps: @@ -33,6 +33,6 @@ jobs: - name: Publish run: | npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish --ignore-scripts + npm publish --ignore-scripts --access public env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index f686315..1146bce 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "NodeJS SDK for the Anko Investor gRPC Forecasts Service", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\"" }, "repository": { "type": "git",