From 2d9ba03dea54abbeae4e17ffc41658f43a1fa0ca Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:31:23 +0100 Subject: [PATCH] [NO JIRA]: Improve releases process further (#188) --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4e9ff7c277..c6c5d770ea3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ defaults: jobs: ReleaseWeb: - name: Release dev version to NPM + name: Release to NPM runs-on: ubuntu-latest environment: Publishing steps: @@ -39,7 +39,7 @@ jobs: run: npm run build - name: Publish dev NPM package - if: ${{ github.event_name != 'release' && github.ref_name != github.event.repository.default_branch }} + if: ${{ github.event_name != 'release' && github.ref == 'refs/heads/main' }} run: | cd packages/react-scripts npm version prerelease --preid=$BUILD_VERSION-dev --no-git-tag-version