Skip to content

Commit

Permalink
ci: shuffle a few things around
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 23, 2024
1 parent 862a48e commit f4d779e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: npm cit

lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- run: npm ci
- run: npm run build
- run: npm test
- run: npm run lint
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@
"attw": "attw --pack --format table-flipped",
"build": "tsup",
"clean": "rm -rf dist/",
"lint": "eslint . --ext .js,.cjs,.ts",
"lint": "npm run lint:js && npm run prettier",
"lint:js": "eslint . --ext .js,.cjs,.ts && prettier --check .",
"prebuild": "npm run clean",
"prepack": "npm run build",
"pretest": "npm run lint && npm run prettier",
"prettier": "prettier --list-different --write .",
"prettier": "prettier --check .",
"prettier:write": "prettier --check --write .",
"test": "vitest run --coverage"
},
"dependencies": {
Expand Down

0 comments on commit f4d779e

Please sign in to comment.