5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00
Commit graph

6 commits

Author SHA1 Message Date
wagoid
2e578124a5 fix: build the action with rollup
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
2021-07-17 12:19:13 -03:00
wagoid
5463926c07 feat: update dependencies that needed to switch to ESM syntax
Some packages were updated to versions that now use ECMAScript modules,
so this repo was updated to use ES modules using Node.js built-in support.

Update was done using the great guide from @sindresorhus:
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
2021-07-07 15:17:00 -03:00
Wagner Santos
51913c302c style: add eslint to the project
The config is based on airbnb shared config, with some rules that work better with the project.
2021-02-18 14:43:25 -03:00
Wagner Santos
a34ac47c34 feat: add outputs generation again
As mentioned on https://github.com/actions/toolkit/issues/702#issuecomment-774269650,
we are safe to execute commands on our side.

This reverts commit 58072cd806, reversing
changes made to 1788ebdc06.
2021-02-07 07:17:51 -03:00
Wagner Santos
b674cd3ec4 fix: remove output generation
After the CVE-2020-15228 vulnerability,
we can't issue commands with sensitive data on this action anymore.

Due to that, the JSON output that this action generated was removed.
2021-01-28 19:37:14 -03:00
Wagner Santos
25a8edceb7 refactor: move action files to src folder 2020-08-02 06:42:21 -03:00
Renamed from generateOutputs.js (Browse further)