Closed benwinding closed 3 years ago
Love it!
Moving the package.json
appears to have broken the tests and probably the publish phase of this repo though.
I’m a little conflicted about how to fix that though. Now that we aren’t calling npx
we don’t actually need the publish to npm phase (I would like some level or testing or linting in the project though) so we could dump that entire workflow and do something new that just pushed taged releases for every push that passes some linting.
Thoughts? I don’t want to derail this improvement with a bunch of build tooling so let me know what sounds easiest and we’ll go with that for now.
Would love to get this in ;)
Would love to get this in ;)
Me too! :grinning:
I just added another commit, which changes the mikeals-workflow.yml
file:
working-directory
)Cheers, Ben
Looks good, merging.
Hi @mikeal, This relates to issue #22 . But here's a brief overview of this PR
Current System
merge-release.js
script is executed usingnpx
inentrypoint.sh
, which runs the package + install dependencies from npm https://github.com/mikeal/merge-release/blob/69d0bc4750a97ce4e1c81d4a7c86088f79bd051d/entrypoint.sh#L44 This means that each fork of this action, also needs to deploy their own package to npm too, which is not ideal for people to add improvements.Proposed Changes (this PR)
package.json
andmerge-release.js
into asrc
directory../src
directory into the docker image and install the dependencies there (at build time)node
inentrypoint.sh
(as all dependencies are already there), rather than downloading the npm packagemerge-release
https://github.com/benwinding/merge-release/blob/87f0410e7678aa4dd12c76c1c9569d4f9f29eb9f/entrypoint.sh#L39-L40
.dockerignore
file added for convenience of which files are copied into the imageaction.yaml
file added for the action's metadata (inputs/outputs) more info hereConclusion
uses: benwinding/merge-release@87f0410e7678aa4dd12c76c1c9569d4f9f29eb9f
Future Improvements
apt-get
ornpm
dependencies will be downloaded at each github action run.Let me know if there's any questions, concerns or changes you think are necessary.
Cheers, Ben