Skip to content

Commit 1fb6fce

Browse files
committed
chore: generate lockfile for audit, install speed
1 parent 1fbe36d commit 1fb6fce

File tree

5 files changed

+12263
-16
lines changed

5 files changed

+12263
-16
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,15 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626

27-
- name: Install Node.js
28-
uses: actions/setup-node@v4
27+
- uses: actions/setup-node@v4
2928
with:
3029
node-version: 20
3130

32-
- name: Install dependencies
33-
run: npm install
31+
- run: npm ci
3432

35-
- name: Run all tests
36-
run: npm test
33+
- run: npm test
3734

38-
- name: Release and publish
39-
run: npx semantic-release
35+
- run: npx semantic-release
4036
env:
4137
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4238
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222

23-
- name: Install dependencies
24-
run: npm install
23+
- run: npm ci
2524

26-
- name: Lint
27-
run: npm run lint
25+
- run: npm run lint
2826

29-
- name: Run tests
30-
run: npm test
27+
- run: npm test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ tmp/**/*
66
.idea/**/*
77
*.iml
88
*.log
9-
package-lock.json
109
.nyc_output
1110
.tap

.npmrc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
package-lock=false
1+
; Don't download optionalDependencies and peerDependencies.
2+
; Conflicting peerDependencies is a source of issues with npm install.
3+
; This setting forces us to be explicit about listing dependencies.
4+
omit=optional
5+
omit=peer
6+
7+
registry=https://registry.npmjs.org
8+
9+
; Prefer specifying dependency versions explicitly. Renovate will open
10+
; pull requests that handle most dependency updates for you.
211
save-exact=true
12+
13+
; Treat conflicting peerDependencies as a failure,
14+
; even if npm can reasonably guess an appropriate resolution.
15+
strict-peer-deps=true
16+
17+
; Renovate will update packageManager for us.
18+
update-notifier=false

0 commit comments

Comments
 (0)