Skip to content

Commit 2d9ba03

Browse files
authored
[NO JIRA]: Improve releases process further (#188)
1 parent c382ea5 commit 2d9ba03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212

1313
jobs:
1414
ReleaseWeb:
15-
name: Release dev version to NPM
15+
name: Release to NPM
1616
runs-on: ubuntu-latest
1717
environment: Publishing
1818
steps:
@@ -39,7 +39,7 @@ jobs:
3939
run: npm run build
4040

4141
- name: Publish dev NPM package
42-
if: ${{ github.event_name != 'release' && github.ref_name != github.event.repository.default_branch }}
42+
if: ${{ github.event_name != 'release' && github.ref == 'refs/heads/main' }}
4343
run: |
4444
cd packages/react-scripts
4545
npm version prerelease --preid=$BUILD_VERSION-dev --no-git-tag-version

0 commit comments

Comments
 (0)