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

35 commits

Author SHA1 Message Date
Varun Sharma
0e361e0644
ci: restrict permissions for the GITHUB_TOKEN in .github/workflows/ci.yml (#231)
Co-authored-by: Step Security <bot@stepsecurity.io>
2021-09-11 07:51:34 -03:00
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
e0fb983535 chore(deps-dev): upgrade devDeps and actions 2021-07-15 05:50:16 -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
9d00d1e757 fix: perform an atomic push when releasing
This avoids the following error:
"Updates were rejected because the tip of your current branch is behind its remote counterpart"
This happens when a PR is merged while release is in progress.
2021-03-02 18:16:45 -03:00
dependabot[bot]
cc0bfa024a
chore(deps): bump actions/setup-node from v2.1.4 to v2.1.5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 06:04:12 +00:00
Jeroen de Bruijn
e03ee8edd2
ci: run npm ci to install and ignore scripts (#104)
* 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
2021-02-25 20:02:06 +01:00
Jeroen de Bruijn
a0b2acf16c
style: add ESLint ignore file to enable linting of dotfiles (#103)
Closes #100.
2021-02-25 19:03:56 +01:00
Wagner Santos
574a6716ee ci: add eslint check to CI workflow 2021-02-18 14:43:27 -03:00
Wagner Santos
4797b1f41b
Merge pull request #78 from wagoid/dependabot/github_actions/actions/setup-node-v2.1.4
chore(deps): bump actions/setup-node from v1 to v2.1.4
2021-02-17 10:26:30 -03:00
dependabot[bot]
b36ff6e7ea
chore(deps): bump actions/setup-node from v1 to v2.1.4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...c46424eee26de4078d34105d3de3cc4992202b1e)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 09:20:39 +00:00
dependabot[bot]
3317cfd7fc
chore(deps): bump actions/cache from v2 to v2.1.4
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-15 09:20:35 +00:00
Wagner Santos
6f63f52e0f ci: cache deps when running commitlint 2021-02-12 16:53:56 -03:00
Wagner Santos
cd7f07d5ef style: ignore body-max-line-length rule for deps commits 2021-02-12 16:42:03 -03:00
Wagner Santos
26b07cb569 ci: remove redundant commitlint-with-yml-file workflow
We have tests for custom yml config file, so this is not needed.
2021-02-12 15:49:45 -03:00
Frazer Smith
d81123cbbd
ci: add dependabot config 2021-02-10 14:06:35 +00:00
Wagner Santos
15aa3a746a ci: fix Dockerfile replacement logic on workflow 2021-01-28 19:10:17 -03:00
Wagner Santos
072351755b ci: replace set-env calls with $GITHUB_ENV file
Due to security reasons, ::set-env command doesn't work anymore. The new method of
updating env vars dynamically is through the $GITHUB_ENV file.
2020-11-21 06:32:32 -03:00
Wagner Santos
a70da87c5c ci: fix changelog not being populated during release
Fixes #54
2020-09-14 08:56:46 -03:00
Wagner Santos
7dc04121c2 ci: cache npm dependencies on CI 2020-08-22 06:50:33 -03:00
Wagner Santos
7ccafb1f5f ci: add release job 2020-08-22 06:50:29 -03:00
Wagner Santos
18e9bff0e6 feat: use action input instead of env var to get the github token
BREAKING CHANGE: GITHUB_TOKEN env var is now ignored. In case a custom token is needed,
it'll be necessary to pass it via the `token` input from now on.
2020-08-02 11:23:03 -03:00
Wagner Santos
8d360d2e46 ci: add example that shows json results 2020-08-02 06:49:39 -03:00
Wagner Santos
2f14e0504a ci: use node 12 when running tests 2020-07-03 15:56:43 -03:00
Wagner Santos
1a7a9181b9 ci: add a job that pulls the action from docker hub 2020-07-03 15:56:43 -03:00
Wagner Santos
341b9514fa docs: update usage to explain how to use it with actions/checkout@v2 2020-01-05 06:55:27 -03:00
Wagner Santos
c8ff3dcea8 test: show coverage in CI tests 2019-12-09 20:29:48 -03:00
Wagner Santos
eac721a186 test: add tests for the action 2019-12-09 20:12:53 -03:00
Wagner Santos
8dd0fbf821 fix: errors not showing when PR has only one commit 2019-11-24 09:21:32 -03:00
Wagner Santos
213c2974cb ci: fix action always working on CI 2019-11-23 18:34:21 -03:00
Wagner Santos
99b068a844 fix: lerna scopes not working due to missing lerna dependency
`@commitlint/config-lerna-scopes` package depends on lerna but doesn't have `lerna` listed in its dependencies, so the action was failing. Since this action doesn't run in the repo's context, we need to install lerna as a dependency to make it work.
2019-10-18 16:44:52 -03:00
Wagner Santos
02bab91ad9 test: build action docker image locally when running tests 2019-10-15 11:00:31 -03:00
Wagner Santos
23cd801837 feat: add ability to run commitlint on events that are not pull requests
For any event that is not of type `pull_request`, we consider there will be a `GITHBU_SHA` defined and run lint against only this specific commit
sha.
This supports not only events of type `pull` but also other events that provide us a `GITHBU_SHA`, like `check_suite`.
2019-10-15 10:23:56 -03:00
Wagner Santos
beb4b9b431 test: add second commitlint check using yml file instead of js 2019-10-08 13:19:58 -03:00
Wagner Santos
0a5bea362b chore: add commitlint workflow using the local action 2019-10-04 00:18:00 -03:00