gitlab CI

This commit is contained in:
Gavin Fox
2026-08-13 21:22:35 -07:00
parent 07515e2627
commit e3d0d4dd1c

16
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,16 @@
publish:
stage: publish
image: node:22
rules:
- when: manual
before_script:
- git config user.name "gitlab-ci"
- git config user.email "gitlab-ci@$CI_SERVER_HOST"
- git remote set-url origin "https://oauth2:${GITLAB_PUSH_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
- git checkout "$CI_COMMIT_BRANCH"
script:
- npm ci
- npm version minor
- git push origin HEAD:"$CI_COMMIT_BRANCH" --follow-tags
- echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" > .npmrc
- npm publish