Skip to content

Commit c23bf89

Browse files
committed
Add prettier and vitest run to npm scripts
1 parent dedcb92 commit c23bf89

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
with:
1717
node-version: 16
1818
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
1920
- run: npm publish
2021
env:
2122
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "A plugin for ESLint that allows you to use project-specific rules",
55
"main": "index.js",
66
"scripts": {
7-
"test": "vitest"
7+
"prettier": "prettier --write .",
8+
"test": "vitest",
9+
"test:ci": "vitest run"
810
},
911
"repository": {
1012
"type": "git",

0 commit comments

Comments
 (0)