From cc9466ba0a6b179d00bd0e011f02f52d109c024f Mon Sep 17 00:00:00 2001 From: Ben Coleman Date: Fri, 6 Dec 2024 16:10:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Re-enable=20pre-release=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 48c55f2..0928840 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -38,8 +38,8 @@ jobs: runs-on: ubuntu-latest needs: lint-check - # Only run on main branch - ## sif: github.ref == 'refs/heads/main' + # Only run on main branch, i.e. when merging PR or pushing to main (v naughty!) + if: github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v3 @@ -54,6 +54,7 @@ jobs: cache: 'npm' registry-url: 'https://registry.npmjs.org' + # Prepare a prerelease version based on the commit SHA - name: NPM install & version env: NODE_ENV: production @@ -62,7 +63,7 @@ jobs: npm version prerelease --preid=${GITHUB_SHA:0:7} --no-git-tag-version git status - - name: Build all bundles + - name: Build both bundles env: NODE_ENV: production run: |