From 9dfec02106df1ca2e5e6000eabcdfc654af66f2c Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:35:32 +0700 Subject: [PATCH] Update workflow configs --- .github/workflows/build.yml | 15 ++++++++++++++- .github/workflows/cloudflare-pages.yml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a516b0..16c45ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - publish-npm: + release-npm: runs-on: ubuntu-latest needs: ci permissions: @@ -59,3 +59,16 @@ jobs: env: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} run: npx lerna publish from-package --yes --pre-dist-tag next + + publish-chromatic: + uses: ./.github/workflows/chromatic.yml + needs: release-npm + secrets: + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + + publish-cloudflare-pages: + uses: ./.github/workflows/cloudflare-pages.yml + needs: release-npm + secrets: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/.github/workflows/cloudflare-pages.yml b/.github/workflows/cloudflare-pages.yml index 7db2e7c..8dd195c 100644 --- a/.github/workflows/cloudflare-pages.yml +++ b/.github/workflows/cloudflare-pages.yml @@ -64,7 +64,7 @@ jobs: npm ci --workspaces --no-audit --ignore-scripts composer install --prefer-dist - - name: Run Build + - name: Run build env: NODE_ENV: production run: |