-
Notifications
You must be signed in to change notification settings - Fork 573
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
New release script for individual binary installs #1125
base: master
Are you sure you want to change the base?
Conversation
@@ -13,7 +13,7 @@ jobs: | |||
- name: Update binaries | |||
run: | | |||
$ErrorActionPreference = 'SilentlyContinue' | |||
git clone --recursive https://github.com/uNetworking/uWebSockets.js.git | |||
git clone --recursive https://github.com/${{ github.repository }}.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was easier for when testing on my fork, but let me know if I should revert this and the others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works this is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be just fine 👍
@@ -17,7 +17,7 @@ | |||
|
|||
module.exports = (() => { | |||
try { | |||
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); | |||
return require('@uws/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually not important as it's the uws.js on the binaries branch that we use, but it felt weird to have an outdated version here.
git add -A | ||
git commit -m "Released @uws/$binary with version $version" | ||
git tag "v${version}-$binary" | ||
git push "https://x-access-token:${{ secrets.SECRET }}@github.com/${{ github.repository }}" "v${version}-$binary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might need to change the username from x-access-token here back to unetworkingab - let me know if I should do that, or we can see if it's fine when you do a test release
Holy shit this looks great, I need to process this for a while |
Glad to hear - You might have an opinion on the naming for the binary specific subpackages. I went with a Here's the difference as examples
We can also get rid of the |
This release.yml script makes a release with the version specified when running it.
It lets package managers only download the binary that they need.
You do a release by triggering the workflow under the actions tab like shown below.
Only harm done if anything goes wrong is a lot of tags you need to delete (one for the main pkg and one for each binary).
The version must be without a
v
prefix, so eg. the next version should be20.50.0
. You can also try it out with prereleases and delete the tags afterwards - eg20.50.0-test
and then install withnpm i uNetworking/uWebSockets.js#v20.50.0-test
uws-release.mp4