From 4d801feef4208d476acd702de9b0b42c74dfe122 Mon Sep 17 00:00:00 2001 From: maxime Date: Fri, 23 Feb 2024 11:57:52 +0100 Subject: [PATCH] feat: cleanup --- .github/workflows/_deploy-vercel.yml | 2 ++ .github/workflows/web-publish-prod.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_deploy-vercel.yml b/.github/workflows/_deploy-vercel.yml index 28ad95ca..6623a514 100644 --- a/.github/workflows/_deploy-vercel.yml +++ b/.github/workflows/_deploy-vercel.yml @@ -3,6 +3,8 @@ name: deploy-vercel on: workflow_call: secrets: + VERCEL_TOKEN: + required: true VERCEL_ORG_ID: required: true VERCEL_PROJECT_ID: diff --git a/.github/workflows/web-publish-prod.yml b/.github/workflows/web-publish-prod.yml index a7cea302..f47bb2a6 100644 --- a/.github/workflows/web-publish-prod.yml +++ b/.github/workflows/web-publish-prod.yml @@ -6,7 +6,7 @@ on: - "master" jobs: - web-bump-version: + bump-version: name: "Bump Version on master" runs-on: ubuntu-latest @@ -33,7 +33,9 @@ jobs: run: echo "new tag $NEW_TAG" deploy-vercel: + need: [bump-version] uses: ./.github/workflows/_deploy-vercel.yml secrets: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}