-
Notifications
You must be signed in to change notification settings - Fork 29
Automate package publishing #136
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
81c067d
chore: Update publish packages workflow
mugikhan 51f39ae
chore: Remove download update powersync core binary filenames for Lin…
mugikhan a665c03
chore: Download Binaries for tests
mugikhan 1a3f7cf
chore: Fix powersync core version
mugikhan 7a8020e
chore: Update powersync core version for tests
mugikhan 07121f8
Publish packages based on tags
mugikhan e848bb4
Merge branch 'main' into chore/automate-package-publishing
mugikhan 0c8d930
Fix windows binary name
mugikhan 9123027
Use dart setup for token
mugikhan f1361ef
Use melos publish
mugikhan 100b909
Test publishing dry run
mugikhan 534dfe6
Use melos for publishing pacakges with updates
mugikhan 40a7f0f
Remove unneeded download of binaries
mugikhan 2565a86
Releasing guide
mugikhan baf7fd8
Clean up release guide
mugikhan 51d13b7
Clarify draft release
mugikhan fac2ce1
Set core version for download
mugikhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Preparing Release | ||
|
||
Bump the version of the packages to be released using `melos`: | ||
|
||
``` | ||
melos version | ||
``` | ||
|
||
if melos does not pick up changes or does not bump the version correctly, you can manually version the packages using | ||
|
||
``` | ||
melos version -V ${PACKAGE_NAME}:M.M.P | ||
for e.g melos version -V powersync:1.6.3 | ||
``` | ||
|
||
This will create a tag for all packages updated in the format of ${PACKAGE_NAME}-vM.M.P | ||
|
||
``` | ||
e.g powersync-v1.6.4, powersync_attachments_helper-v0.6.3+1, etc. | ||
``` | ||
|
||
# Perform Release | ||
|
||
``` | ||
git push --follow-tags | ||
``` | ||
|
||
A version bump and tag push for `powersync` will also create a draft github release for the powersync web worker. The worker needs to be manually published in the GitHub [releases](https://github.com/powersync-ja/powersync.dart/releases). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$CORE_VERSION" ]; then | ||
echo "CORE_VERSION is not set"; | ||
exit 2; | ||
fi | ||
|
||
github="https://github.com/powersync-ja/powersync-sqlite-core/releases/download/$CORE_VERSION" | ||
|
||
curl "${github}/libpowersync_aarch64.so" -o packages/powersync_flutter_libs/linux/libpowersync_aarch64.so --create-dirs -L -f | ||
curl "${github}/libpowersync_x64.so" -o packages/powersync_flutter_libs/linux/libpowersync_x64.so --create-dirs -L -f | ||
curl "${github}/powersync_x64.dll" -o packages/powersync_flutter_libs/windows/powersync_x64.dll --create-dirs -L -f |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.