Changed git ignore rules to include /dist/** folder in the repo (09f5a83)
Added action main logic action.js (09f5a83)
Added action metadata action.yml (09f5a83)
Added /dist folder (09f5a83)
Added ignore rule for /dist in the linter (702ad81)
Added build step to CI (a26c424)
Demo
Passing for Node.js 18.14.1,
Failing for Node.js 8.0.0,
Notes
It is important to notice that /dist folder needs to be updated when doing a release in order to ship the changes to the Github Action itself, as the function is using the dist/index.js as entry point.
Changelog
0261b10 chore: added github actions dependencies by @UlisesGascon
09f5a83 feat: added github action support by @UlisesGascon
1494ef3 docs: added github action details by @UlisesGascon
702ad81 chore: ignore dist folder for linting by @UlisesGascon
a26c424 chore: added extra step to CI for build Github Action by @UlisesGascon
3157d07 fix: added missing input in metadata by @UlisesGascon
1e8457a fix: properly manage async by @UlisesGascon
709cc82 chore: improved logging by @UlisesGascon
b54e4e2 chore: github action build by @UlisesGascon
Main changes
Added Github Actions capabilities
@actions/core
as dependency (0261b10)@vercel/ncc
as dev Dependency (0261b10)/dist/**
folder in the repo (09f5a83)action.js
(09f5a83)action.yml
(09f5a83)/dist
folder (09f5a83)/dist
in the linter (702ad81)Demo
Notes
It is important to notice that
/dist
folder needs to be updated when doing a release in order to ship the changes to the Github Action itself, as the function is using thedist/index.js
as entry point.Changelog