On v4, we used the default nodejs resolution logic to allow ES modules in dependencies.
This created a breaking change of forcing users of this action
to use the .cjs extension instead of .js in config files.
With this fix, we now bundle the action with rollup to allow ES modules
in dependencies, while keeping the support for .js config files.
With this change, the default config file was returned back to .js instead of
.cjs.
Fixes#194
This will help upgrading dependencies to new versions that are exported
as ESM.
BREAKING CHANGE: Node.js version used on the action updated from 12 to
16
* ci: run `npm ci` to install and ignore scripts
`npm ci` is meant to be used in CI environments and the scripts are ignored to prevent e.g. Husky
from being installed in the CI environment. See https://docs.npmjs.com/cli/v7/commands/npm-ci.
* ci: run `npm ci` to install and ignore scripts in the Dockerfile
The action's image is now based on alpine, which reduced drastically it's size. The previous compressed size was ~352 MB, now it's only ~56 MB.
Resolves#37