Skip to content

Commit

Permalink
single package install
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 14, 2023
1 parent af7ba8a commit 74cbe05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1,260 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ jobs:
with:
version: 8.7.5

- name: Install dependencies
- name: Fetch config package version
id: config-package-version
env:
GITMOJI_CONFIG_PACKAGE: "commitlint-config-gitmoji"
run: |
pnpm install -D
grep -A 2 "GITMOJI_CONFIG_PACKAGE" pnpm-lock.yaml \
| awk '/version:/ {print "'"GITMOJI_CONFIG_PACKAGE"'@" $2}'
- name: Print commitlint config
- name: Install config package
env:
CONFIG_PACKAGE: "${{ steps.config-package-version.outputs.stdout }}"
run: |
pnpm dlx commitlint --print-config
pnpm add $CONFIG_PACKAGE
- name: Validate PR title
run: |
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"private": true,
"devDependencies": {
"commitlint": "^17.7.1",
"commitlint-config-gitmoji": "^2.3.1"
}
}
Loading

0 comments on commit 74cbe05

Please sign in to comment.