From ae80c883e95e72d32c0f4c6ea696b12bf740bfb0 Mon Sep 17 00:00:00 2001 From: Klaas Kliffen <kliffen@astron.nl> Date: Tue, 5 Dec 2023 13:49:38 +0100 Subject: [PATCH] ci(release): try prevent pre_commit hooks to run --- .gitlab-ci.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9aba362..499e1eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,8 +2,8 @@ stages: - linting - test - analyze - - release - build + - release - integration - deploy @@ -40,16 +40,6 @@ test_storybook: - npx playwright install --with-deps - npm run test-storybook:ci -semantic_release: - stage: release - script: - - npm install - - echo "@astron-sdc:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc - - echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc - - npx semantic-release@22 - rules: - - if: $CI_COMMIT_BRANCH == 'main' - build_static_files: stage: build script: @@ -68,6 +58,17 @@ build_package: - dist expire_in: "1w" +semantic_release: + stage: release + needs: [build_package] + script: + - npm ci --ignore-scripts + - echo "@astron-sdc:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc + - echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc + - npx semantic-release@22 + rules: + - if: $CI_COMMIT_BRANCH == 'main' + build_docker_image: stage: build image: docker:20-cli -- GitLab