Publish npm package as soon as the build job finishes

This commit is contained in:
Samuel Elliott 2022-11-19 12:52:11 +00:00
parent c565dfbf60
commit 3493ed09c0
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6

View File

@ -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: