From 6b2890a06019ac1637bfaac6954bed2115dc1dfb Mon Sep 17 00:00:00 2001 From: Lucas Pedroza Date: Thu, 21 Mar 2024 16:18:21 +0100 Subject: [PATCH] Fix publish --- concourse/pipeline.yml | 1 + concourse/scripts/publish.sh | 2 +- concourse/tasks/npm-publish.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/concourse/pipeline.yml b/concourse/pipeline.yml index 2daecd2e..e6f654f8 100644 --- a/concourse/pipeline.yml +++ b/concourse/pipeline.yml @@ -258,6 +258,7 @@ jobs: input_mapping: {repo.git: beta.git} params: NPM_TOKEN: ((npm_token)) + NPM_PUBLISH_ARGS: --tag beta on_success: put: notify params: diff --git a/concourse/scripts/publish.sh b/concourse/scripts/publish.sh index 3ed59c56..a84c01b9 100755 --- a/concourse/scripts/publish.sh +++ b/concourse/scripts/publish.sh @@ -15,7 +15,7 @@ then echo "Publishing a new version..." echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc - npm publish + npm publish $NPM_PUBLISH_ARGS rm .npmrc echo "fauna-js@$PACKAGE_VERSION published to npm " > ../slack-message/publish diff --git a/concourse/tasks/npm-publish.yml b/concourse/tasks/npm-publish.yml index 37b72c3e..a138214c 100644 --- a/concourse/tasks/npm-publish.yml +++ b/concourse/tasks/npm-publish.yml @@ -9,6 +9,7 @@ image_resource: params: NPM_TOKEN: + NPM_PUBLISH_ARGS: inputs: - name: repo.git