Skip to content

Commit

Permalink
fix: incorrect condition on workflow step (openwallet-foundation#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
charsleysa authored Mar 14, 2024
1 parent bcd7d6e commit fec88f0
Showing 1 changed file with 7 additions and 8 deletions.
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

0 comments on commit fec88f0

Please sign in to comment.