-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #55 from realmarv/upgradeCommitlint-squashed
Upgrade commitlint to the latest version.
- Loading branch information
Showing
7 changed files
with
172 additions
and
2,048 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,12 @@ jobs: | |
apt update | ||
apt install -y sudo | ||
sudo apt install -y git | ||
sudo DEBIAN_FRONTEND=noninteractive apt install --yes npm | ||
- name: Install commitlint | ||
run: npm install | ||
sudo apt install -y curl | ||
# can't install ubuntu's default nodejs version because we would get this error: | ||
# error @jest/[email protected]: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.9" | ||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | ||
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs | ||
- name: Print versions | ||
run: | | ||
git --version | ||
|
@@ -25,7 +28,12 @@ jobs: | |
npx commitlint --version | ||
- name: Install yarn | ||
run: | | ||
sudo npm install -g yarn | ||
npm install -g yarn | ||
yarn add --dev jest typescript ts-jest @types/jest | ||
- name: Install commitlint | ||
run: | | ||
npm install conventional-changelog-conventionalcommits | ||
npm install commitlint@latest | ||
- name: Print versions | ||
run: | | ||
git --version | ||
|
@@ -80,8 +88,4 @@ jobs: | |
# Since we changed file modes in the previous step we need the following command to | ||
# make git ignore mode changes in files and doesn't include them in the git diff command. | ||
git config core.fileMode false | ||
# Since after installing npm packages, package.json and package-lock.json change, | ||
# `git diff --exit-code` will always throw an error, so we need to restore those | ||
# files before running `git diff --exit-code` command. | ||
git restore package.json package-lock.json | ||
git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.