Skip to content

Commit

Permalink
ci: move check-node-version to separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarCode committed May 20, 2024
1 parent eaffd99 commit 71cedb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm i -g [email protected]
- run: npm ci
- run: npm run check-node-version
- run: npm run standards
test:
needs: [ build ]
Expand All @@ -31,5 +31,4 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g [email protected]
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Organizational information and coding standards",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"check-node-version": "check-node-version --npm 10.5.0",
"commitlint": "commitlint --from 04206a0",
"markdownlint": "markdownlint **/*.md --ignore node_modules",
"standards": "npm run markdownlint"
Expand Down

0 comments on commit 71cedb8

Please sign in to comment.