Fix release publishing

This commit is contained in:
2026-08-17 19:26:15 -07:00
parent d45c84497d
commit c1b944424d

View File

@@ -8,15 +8,9 @@ publish:
stage: publish stage: publish
image: node:22 image: node:22
rules: rules:
- when: manual - if: '$CI_COMMIT_TAG'
before_script: when: manual
- 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: script:
- npm ci - npm ci
- npm version minor
- git push origin HEAD:"$CI_COMMIT_BRANCH" --follow-tags
- echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" > .npmrc - echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" > .npmrc
- npm publish - npm publish