From c1b944424dae6e951c06e92084987aca4b2747f8 Mon Sep 17 00:00:00 2001 From: alwaysmesmerizingyou Date: Mon, 17 Aug 2026 19:26:15 -0700 Subject: [PATCH] Fix release publishing --- .gitlab-ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa18534..717d1e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,15 +8,9 @@ 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" + - if: '$CI_COMMIT_TAG' + when: manual 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 \ No newline at end of file