Skip to content

Commit

Permalink
fix(workflows): use sudo in commitlint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
havrydotdev committed Oct 18, 2023
1 parent cfa5382 commit 1f441fb
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
fetch-depth: 0
- name: Install required dependencies
run: |
apt update
apt install -y sudo
sudo apt update
sudo apt install -y sudo
sudo apt install -y git curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs
Expand All @@ -24,8 +24,8 @@ jobs:
npx commitlint --version
- name: Install commitlint
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
sudo npm install conventional-changelog-conventionalcommits
sudo npm install commitlint@latest
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
Expand Down
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 21 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
"name": "ua-teammates",
"version": "0.0.1",
"description": "Bot for searching teammates for games from Ukraine",
"author": "Havrylenko Ivan",
"author": "Havrylenko Ivan <[email protected]>",
"private": true,
"license": "MIT",
"keywords": [
"nest",
"nestjs",
"telegraf",
"telegram",
"telegram bot",
"telegram bot api",
"bot",
"bot api"
],
"bugs": {
"url": "https://github.com/gavrylenkoIvan/ua-teammates/issues"
},
"repository": "[email protected]:gavrylenkoIvan/ua-teammates.git",
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
Expand All @@ -17,7 +31,11 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"typedoc:build": "typedoc --tsconfig ./tsconfig.typedoc.json",
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
"docs:preview": "vitepress preview"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
Expand All @@ -36,6 +54,7 @@
"typeorm": "^0.3.17"
},
"devDependencies": {
"@commitlint/config-angular": "^17.8.0",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
Expand Down

0 comments on commit 1f441fb

Please sign in to comment.