Skip to content

Commit

Permalink
Only release on branch main
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Apr 11, 2024
1 parent d059f1f commit 4ea4596
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
pnpm test
- name: Determine release tag
if: ${{ inputs.release }}
if: ${{ inputs.release && github.ref == 'refs/heads/main' }}
run: |
cd packages/reactivity-core
Expand All @@ -54,14 +54,14 @@ jobs:
echo RELEASE_TAG=$NAME@$VERSION >> $GITHUB_ENV
- name: Tag release
if: ${{ inputs.release }}
if: ${{ inputs.release && github.ref == 'refs/heads/main' }}
uses: rickstaa/action-create-tag@v1
with:
tag: "${{ env.RELEASE_TAG }}"
force_push_tag: true

- name: Publish package
if: ${{ inputs.release }}
if: ${{ inputs.release && github.ref == 'refs/heads/main' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit 4ea4596

Please sign in to comment.