Skip to content

Commit

Permalink
chore(publishing): Fix canary publishing for next branch (#11429)
Browse files Browse the repository at this point in the history
You'll see that the canary publishing for the next branch is broken.
Example action log:
https://github.com/redwoodjs/redwood/actions/runs/10706015686/job/29682729719

The problem as I see it is that we're grep'ing for `-canary.` but in
this case we're looking to publish with the `-next.` prefix which is
clearly the one output by lerna. This PR updates the grep to use a regex
for either the next or canary match.
  • Loading branch information
Josh-Walker-GM committed Sep 4, 2024
1 parent 71ad1c9 commit 40c0976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/publish_canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo 'n' \
| yarn lerna publish "${args[@]}" 2>&1 \
> publish_output
cat publish_output \
| grep '\-canary\.' \
| grep -E '\-canary\.|\-next\.' \
| tail -n 1 \
| sed 's/.*=> //' \
| sed 's/\+.*//' \
Expand Down

0 comments on commit 40c0976

Please sign in to comment.