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

Set prerelease version before publishing to npm in Github action #1076

Merged
merged 1 commit into from Sep 13, 2023

Conversation

svix-lucho
Copy link
Contributor

See https://github.com/svix/svix-webhooks/actions/runs/6173804183/job/16756967707

Publishing the prerelease package failed because we didn't set the correct version before yarn publish

Solution

This uses yarn version --prerelease --preid next. For example, 1.12.0 becomes 1.12.0-next.1 before publishing, so it doesn't conflict with the current released version.

Also added a filter to only run the workflow if the javascript directory was changed.

@svix-lucho svix-lucho requested a review from a team September 13, 2023 14:54
@svix-lucho svix-lucho merged commit bf06b86 into main Sep 13, 2023
1 check passed
@svix-lucho svix-lucho deleted the lucho/pre-release-npm-2 branch September 13, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants