Skip to content

Commit 64d5c55

Browse files
committed
Pin prettier version and update CI workflow
- Pin prettier to exact version 3.2.5 (remove caret) - Update prettier script to use npx for consistency - Update CI workflow to use make ci-check - Add clean target to Makefile - Add ci-check target to verify no uncommitted changes after build/prettier
1 parent 3f01d69 commit 64d5c55

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,8 @@ jobs:
1616
with:
1717
registry-url: 'https://registry.npmjs.org/'
1818
node-version-file: 'package.json'
19-
- name: Build
20-
run: make build
21-
22-
- name: Prettier
23-
run: make prettier
24-
25-
- name: fail if files changed
26-
run: |
27-
if ! git diff --quiet --exit-code ; then
28-
echo "Please run 'make build' and 'make prettier' locally and commit the changes."
29-
exit 1
30-
fi
19+
- name: CI Check
20+
run: make ci-check
3121

3222
- name: Test
3323
run: make test

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Can interact with the vendor portal api!",
55
"scripts": {
66
"build": "rm -rf dist && tsc --build",
7-
"prettier": "prettier --config .prettierrc 'src/**/*.ts' --write",
7+
"prettier": "npx prettier --config .prettierrc 'src/**/*.ts' --write",
88
"test": "npx jest --coverage --verbose --setupFiles ./pacts/configuration.ts",
99
"create-object-store": "rm -rf examples/*.js && tsc examples/create-object-store.ts && node examples/create-object-store.js",
1010
"create-postgres": "rm -rf examples/*.js && tsc examples/create-postgres.ts && node examples/create-postgres.js",
@@ -41,7 +41,7 @@
4141
"fs-extra": "^11.1.1",
4242
"jest": "^29.5.0",
4343
"mockttp": "^3.10.1",
44-
"prettier": "^3.2.5",
44+
"prettier": "3.2.5",
4545
"ts-jest": "^29.1.0"
4646
}
4747
}

0 commit comments

Comments
 (0)