Skip to content

Commit a4bb8ce

Browse files
authored
JSR now requires node_modules before publish (#36)
1 parent a9b9382 commit a4bb8ce

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 2
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v4
1212
- run: npm audit

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 2
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v4
1212
- uses: actions/cache@v1
1313
with:
1414
path: node_modules

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 2
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v4
1212
- uses: actions/cache@v1
1313
with:
1414
path: node_modules

.github/workflows/publish-jsr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@ jobs:
1010
id-token: write # The OIDC ID token is used for authentication with JSR.
1111
steps:
1212
- uses: actions/checkout@v4
13+
- uses: actions/cache@v1
14+
with:
15+
path: node_modules
16+
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
17+
restore-keys: |
18+
${{ runner.OS }}-build-${{ env.cache-name }}-
19+
${{ runner.OS }}-build-
20+
${{ runner.OS }}-
21+
- run: npm install
1322
- run: npx jsr publish

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
timeout-minutes: 2
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v4
1212
- uses: actions/cache@v1
1313
with:
1414
path: node_modules

0 commit comments

Comments
 (0)