Skip to content

Commit 7ec7fdc

Browse files
committed
chore: generate lockfile for audit, install speed
1 parent 0fceb9a commit 7ec7fdc

File tree

5 files changed

+12073
-40
lines changed

5 files changed

+12073
-40
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
11
name: Release on main
22

33
permissions:
4-
contents: write # to be able to publish a GitHub release
5-
issues: write # to be able to comment on released issues
6-
pull-requests: write # to be able to comment on released pull requests
7-
id-token: write # to enable use of OIDC for npm provenance
4+
contents: write # to be able to publish a GitHub release
5+
issues: write # to be able to comment on released issues
6+
pull-requests: write # to be able to comment on released pull requests
7+
id-token: write # to enable use of OIDC for npm provenance
88

99
on:
10-
push:
11-
branches:
12-
- main
10+
push:
11+
branches:
12+
- main
1313

1414
# Cancel previous workflows which might still be running
1515
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1818

1919
jobs:
20-
release:
21-
name: Release
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
27-
- name: Install Node.js
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: 20
31-
32-
- name: Install dependencies
33-
run: npm install
34-
35-
- name: Run all tests
36-
run: npm test
37-
38-
- name: Release and publish
39-
run: npx semantic-release
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
release:
21+
name: Release
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Install Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
32+
- run: npm ci
33+
34+
- run: npm test
35+
36+
- run: npx semantic-release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
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
@@ -8,6 +8,5 @@ tmp/**/*
88
*.log
99
coverage
1010
.vscode
11-
package-lock.json
1211
.nyc_output
1312
.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)