From 7fd6bdda7abdc606020b18c75f3c5c47945d7631 Mon Sep 17 00:00:00 2001 From: Nick Schubach Date: Thu, 7 Mar 2024 10:11:14 -0500 Subject: [PATCH] Add build step to github actions --- .github/workflows/publish-prod.yml | 6 ++++++ .github/workflows/publish-sandbox.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/publish-prod.yml b/.github/workflows/publish-prod.yml index 4d3c03ad..ad4eb19c 100644 --- a/.github/workflows/publish-prod.yml +++ b/.github/workflows/publish-prod.yml @@ -27,6 +27,12 @@ jobs: CI: true NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build Utils + run: npm run build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release Pull Request or Publish to npm uses: changesets/action@v1 with: diff --git a/.github/workflows/publish-sandbox.yml b/.github/workflows/publish-sandbox.yml index 9fa7023a..6cbe8801 100644 --- a/.github/workflows/publish-sandbox.yml +++ b/.github/workflows/publish-sandbox.yml @@ -27,6 +27,12 @@ jobs: CI: true NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build Utils + run: npm run build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Create new branch in order to persist changesets through to prod branch - name: Create snapshot sandbox branch run: git checkout -b sandbox-tag