Skip to content

Commit

Permalink
feat(npm): use npm ci with setup-node's cache to stick to standards
Browse files Browse the repository at this point in the history
  • Loading branch information
gjuchault committed Jan 15, 2024
1 parent fe0acea commit 8ae5aaa
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/typescript-library-starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci

lint:
name: ⬣ ESLint
Expand All @@ -25,7 +26,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: ⬣ ESLint
run: npm run lint:check

Expand All @@ -38,6 +40,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "npm"
- name: 🛡️ Audit
run: npm audit --audit-level=high

Expand All @@ -50,7 +53,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: 🔬 Format
run: npm run format:check

Expand All @@ -63,7 +67,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: 🈸 Spellcheck
run: npm run spell:check

Expand All @@ -76,7 +81,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: ʦ Typecheck
run: npm run type:check

Expand All @@ -89,7 +95,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: ⚡ Tests
run: npm run test:coverage

Expand All @@ -102,7 +109,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: ⚡ Tests
run: npm run test:setup

Expand All @@ -115,7 +123,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- uses: bahmutov/npm-install@v1
cache: "npm"
- run: npm ci
- name: 🔨 Build
run: npm run build
- name: 🚀 Release
Expand Down

0 comments on commit 8ae5aaa

Please sign in to comment.