Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incorrect condition on workflow step #176

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build-test-publish-on-push-cached.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: build-test-publish-on-push-cached
on:
on:
pull_request:
branches:
- 'main'
branches:
- 'main'
push:
branches:
- 'main'
branches:
- 'main'

jobs:
build:
Expand Down Expand Up @@ -107,8 +107,8 @@ jobs:
- name: Run Biome
run: pnpm run biome:ci

# Only run this job when the push is on main, next or unstable
publish:
# Only run this job when the push is on main
publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# needs permissions to write tags to the repository
permissions:
Expand Down Expand Up @@ -162,5 +162,4 @@ jobs:
npm whoami

- name: 'Publish next version'
if: github.ref == 'refs/heads/next'
run: pnpm publish:next