Skip to content

Commit

Permalink
Update workflow configs
Browse files Browse the repository at this point in the history
  • Loading branch information
tfirdaus committed Sep 18, 2024
1 parent 14da9a6 commit 9dfec02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish-npm:
release-npm:
runs-on: ubuntu-latest
needs: ci
permissions:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/cloudflare-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 9dfec02

Please sign in to comment.