From 3493ed09c05d3740b32b6bd5c576fb27dec98e20 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 19 Nov 2022 12:52:11 +0000 Subject: [PATCH] Publish npm package as soon as the build job finishes --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0bb1ca9..2f5263b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -139,7 +139,7 @@ publish-npm: - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc - npm --color="always" publish - dependencies: + needs: - build only: refs: @@ -161,7 +161,7 @@ publish-gitlab: - echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" | sed s/^https:// > .npmrc - npm --color="always" --registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/ publish - dependencies: + needs: - build only: refs: @@ -184,7 +184,7 @@ publish-github: - echo "//npm.pkg.github.com/:_authToken=${GITHUB_NPM_TOKEN}" > .npmrc - npm --color="always" --registry=https://npm.pkg.github.com/ publish - dependencies: + needs: - build only: refs: @@ -231,7 +231,7 @@ publish-next: npm --color="always" --registry=https://npm.pkg.github.com/ publish --tag next fi fi - dependencies: + needs: - build only: refs: