Skip to content

Commit

Permalink
Upgrade to node20 and use @actions/glob for globbing and hashing files
Browse files Browse the repository at this point in the history
Also updates tsconfig target to es2022 as this [fits with node 20](https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping)
  • Loading branch information
hugo-vrijswijk committed Jan 29, 2024
1 parent a0e7cd2 commit 8263e12
Show file tree
Hide file tree
Showing 16 changed files with 2,045 additions and 9,576 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Build
shell: bash -l {0}
env:
NODE_OPTIONS: "--openssl-legacy-provider"
run: |
nvm use lts/hydrogen
npm install
npm ci
npm run all
- uses: ./
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Build
shell: bash -l {0}
env:
NODE_OPTIONS: "--openssl-legacy-provider"
run: |
nvm use lts/hydrogen
npm install
npm ci
npm run all
- name: Create Pull Request
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ To take into account extra files in the cache key, pass via `extraFiles` either
- a single path as a string
- multiple paths in a JSON array, encoded in a string

Blobs are accepted (processed by [glob-all](https://www.npmjs.com/package/glob-all)).
Blobs are accepted (processed by [@actions/glob](https://www.npmjs.com/package/@actions/glob)).

### `extraSbtFiles`

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ inputs:
To take into account extra files in the cache key, pass via extraFiles either
- a single path as a string
- multiple paths in a JSON array, encoded in a string
Blobs are accepted (processed by [glob-all](https://www.npmjs.com/package/glob-all)).
Blobs are accepted (processed by [@actions/glob](https://www.npmjs.com/package/@actions/glob)).
default: ''
extraKey:
required: false
Expand Down Expand Up @@ -129,7 +129,7 @@ outputs:
cache-hit-ammonite:
description: 'A boolean value to indicate a match was found for the ammonite cache'
runs:
using: 'node16'
using: 'node20'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: 'success()'
16 changes: 15 additions & 1 deletion dist/restore/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/restore/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 8263e12

Please sign in to comment.