As a JavaScript developer, I'd like to use changie but it's not available as a peer of other JavaScript tooling through NPM. JavaScript projects generally only require npm to be installed on the system, everything else (even binary executables) are installed through NPM packages.
Transferred from #550
Where we've landed in the discussion is I will contribute some JS scripts and initial config. The bulk of this task is adding a step to release.yml that collects the archive binaries for distribution. To keep the size of the npm package down, I'm going to exclude the 386 builds and just ship the 6 major OS/Arch combinations:
dist/changie_darwin_arm64/changie
dist/changie_darwin_amd64_v1/changie
dist/changie_linux_arm64/changie
dist/changie_linux_amd64_v1/changie
dist/changie_windows_arm64/changie.exe
dist/changie_windows_amd64_v1/changie.exe
To achieve this, I need to do a few things.
- create a script to parse
dist/artifacts.json and collect the required binaries (the paths above cannot be relied on)
- Execute this script after the
Run GoReleaser step in the release github action
- Add a
package.json and include it to the list of replacements in .changie.yaml config
- Use the NodeJS github action to publish changie
As a JavaScript developer, I'd like to use changie but it's not available as a peer of other JavaScript tooling through NPM. JavaScript projects generally only require
npmto be installed on the system, everything else (even binary executables) are installed through NPM packages.Transferred from #550
Where we've landed in the discussion is I will contribute some JS scripts and initial config. The bulk of this task is adding a step to
release.ymlthat collects the archive binaries for distribution. To keep the size of the npm package down, I'm going to exclude the386builds and just ship the 6 major OS/Arch combinations:dist/changie_darwin_arm64/changiedist/changie_darwin_amd64_v1/changiedist/changie_linux_arm64/changiedist/changie_linux_amd64_v1/changiedist/changie_windows_arm64/changie.exedist/changie_windows_amd64_v1/changie.exeTo achieve this, I need to do a few things.
dist/artifacts.jsonand collect the required binaries (the paths above cannot be relied on)Run GoReleaserstep in the release github actionpackage.jsonand include it to the list of replacements in.changie.yamlconfig