Skip to content

Feat/github-actions-release #15

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 4 commits into from
Mar 7, 2025
Merged

Conversation

dexter21767-dev
Copy link
Member

@dexter21767-dev dexter21767-dev commented Mar 4, 2025

After updating the node-ssh module, the minimum required version of Node is Node 12. Update pkg to the next version that supports Node 12 or higher. The newer pkg version does not support building x86 executables, so those were removed from the targets, keeping only x64 targets.

we were able to build for windows x86 using a windows runner instead of a linux one.
the new build command allows to override the default build args,
ex: npm run build -- --targets=node12-win-x64 this will only build for windows x64.

added 2 workflows. one for building on PR, executables can be downloaded from the artifacts of the workflow and tested by testers and used by devops for testing new features on servers.
and the other workflow for building and releasing to github after each push/merge to master.
added a workflow for releasing to npm on release to github. (a new release is released to github when version number changes) it requires adding npm_token to the repo's env vars

a working implementation can be found on this repo

@dexter21767-dev dexter21767-dev merged commit 4a35d78 into master Mar 7, 2025
1 check passed
@dexter21767-dev dexter21767-dev deleted the feat/github-actions-release branch March 7, 2025 20:23
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.

1 participant