From 9e3b23ae848dc9c6a243e6d99bc88bfab0c42885 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 19 Feb 2021 14:55:32 +0100 Subject: [PATCH] chore(gitlab-ci): try to prevent release without upload --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a0d7af36..70ad34045 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -107,6 +107,8 @@ yesod:build:dev: script: - stack build --test --copy-bins --local-bin-path $(pwd)/bin --fast --flag uniworx:-library-only --flag uniworx:dev --flag uniworx:pedantic --no-strip needs: + - job: npm install # transitive + artifacts: false - job: frontend:build artifacts: true before_script: &haskell @@ -143,6 +145,8 @@ yesod:build: script: - stack build --test --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip needs: + - job: npm install # transitive + artifacts: false - job: frontend:build artifacts: true before_script: *haskell @@ -170,6 +174,8 @@ yesod:build:profile: script: - stack build --profile --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip needs: + - job: npm install # transitive + artifacts: false - job: frontend:build artifacts: true before_script: *haskell @@ -247,6 +253,10 @@ upload: stage: upload packages image: curlimages/curl:latest needs: + - job: npm install # transitive + artifacts: false + - job: frontend:build # transitive + artifacts: false - job: yesod:build artifacts: true - job: parse-changelog @@ -275,6 +285,12 @@ release: needs: - job: upload artifacts: false + - job: npm install # transitive + artifacts: false + - job: frontend:build # transitive + artifacts: false + - job: yesod:build # transitive + artifacts: false - job: parse-changelog artifacts: true rules: