Skip to content

Commit

Permalink
fix: only publish on main and chore(releases)
Browse files Browse the repository at this point in the history
  • Loading branch information
CasLubbers committed Jan 16, 2025
1 parent 5fc2716 commit bcdfad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
scope: '@linode'
- name: Build and publish clients
if: steps.vars.outputs.diff == 1 && github.ref == 'refs/heads/main'
if: steps.vars.outputs.diff == 1 && startsWith(github.ref, 'refs/heads/main') && startsWith(github.event.head_commit.message, 'chore(release)') && !github.event.act
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit bcdfad1

Please sign in to comment.