diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 461bec8..9b4eea9 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -8,5 +8,5 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 2 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - run: npm audit diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3174685..448b7e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 2 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions/cache@v1 with: path: node_modules diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 493f6d7..13ecbdc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 2 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions/cache@v1 with: path: node_modules diff --git a/.github/workflows/publish-jsr.yml b/.github/workflows/publish-jsr.yml index ea7b02d..f807d26 100644 --- a/.github/workflows/publish-jsr.yml +++ b/.github/workflows/publish-jsr.yml @@ -10,4 +10,13 @@ jobs: id-token: write # The OIDC ID token is used for authentication with JSR. steps: - uses: actions/checkout@v4 + - uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-build-${{ env.cache-name }}- + ${{ runner.OS }}-build- + ${{ runner.OS }}- + - run: npm install - run: npx jsr publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0144d16..e8af196 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 2 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: actions/cache@v1 with: path: node_modules