Skip to content

Commit b65c58d

Browse files
authored
chore: Bump nodejs version to 24 (#34)
1 parent 335a843 commit b65c58d

File tree

10 files changed

+50
-43
lines changed

10 files changed

+50
-43
lines changed

.github/workflows/build_action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4
10+
- uses: actions/setup-node@v6
1111
with:
12-
node-version: 16
12+
node-version-file: "package.json"
1313
- run: npm install
1414
- name: Build action (if not already built)
1515
if: "!startsWith(github.ref, 'refs/heads/release')"

.github/workflows/directory.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
name: Extract Contents of Directory from Example Image
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 20
17+
node-version-file: "package.json"
1818
- name: Load action build from cache
1919
uses: actions/cache@v4
2020
with:
@@ -39,9 +39,9 @@ jobs:
3939
name: Extract Nested Directory from Example Image
4040
steps:
4141
- uses: actions/checkout@v4
42-
- uses: actions/setup-node@v4
42+
- uses: actions/setup-node@v6
4343
with:
44-
node-version: 20
44+
node-version-file: "package.json"
4545
- name: Load action build from cache
4646
uses: actions/cache@v4
4747
with:
@@ -62,9 +62,9 @@ jobs:
6262
name: Extract Nested Contents of Directory from Example Image
6363
steps:
6464
- uses: actions/checkout@v4
65-
- uses: actions/setup-node@v4
65+
- uses: actions/setup-node@v6
6666
with:
67-
node-version: 20
67+
node-version-file: "package.json"
6868
- name: Load action build from cache
6969
uses: actions/cache@v4
7070
with:

.github/workflows/file.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
name: Extract Example File From Root of Built Image
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 20
17+
node-version-file: "package.json"
1818
- name: Load action build from cache
1919
uses: actions/cache@v4
2020
with:
@@ -34,9 +34,9 @@ jobs:
3434
name: Extract Nexted Example File From Built Image
3535
steps:
3636
- uses: actions/checkout@v4
37-
- uses: actions/setup-node@v4
37+
- uses: actions/setup-node@v6
3838
with:
39-
node-version: 20
39+
node-version-file: "package.json"
4040
- name: Load action build from cache
4141
uses: actions/cache@v4
4242
with:

.github/workflows/package-action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
ref: "${{ env.release }}"
1919
fetch-depth: 0
2020
ssh-key: "${{ secrets.COMMIT_KEY }}"
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v6
2222
with:
23-
node-version: 16
23+
node-version-file: "package.json"
2424
- uses: prompt/actions-merge-branch@v2
2525
with:
2626
from: "origin/${{ env.source }}"

.github/workflows/platforms.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
name: Extract Example File on Ubuntu
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: 20
17+
node-version-file: "package.json"
1818
- name: Load action build from cache
1919
uses: actions/cache@v4
2020
with:
@@ -35,9 +35,9 @@ jobs:
3535
name: Extract Example File on macOS
3636
steps:
3737
- uses: actions/checkout@v4
38-
- uses: actions/setup-node@v4
38+
- uses: actions/setup-node@v6
3939
with:
40-
node-version: 20
40+
node-version-file: "package.json"
4141
- name: Install Docker
4242
uses: douglascamata/setup-docker-macos-action@main
4343
- run: docker build -t example:${{ github.sha }} ./.github/tests

.github/workflows/test-readme.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
context: ./.github/tests
1414
tags: my-example-image:latest
1515
load: true
16-
- uses: shrink/actions-docker-extract@v3
16+
- uses: shrink/actions-docker-extract@v4
1717
id: extract
1818
with:
1919
image: my-example-image:latest
@@ -51,7 +51,7 @@ jobs:
5151
registry: "ghcr.io"
5252
username: "${{ github.actor }}"
5353
password: "${{ secrets.GITHUB_TOKEN }}"
54-
- uses: shrink/actions-docker-extract@v3
54+
- uses: shrink/actions-docker-extract@v4
5555
id: extract
5656
with:
5757
image: ghcr.io/${{ github.repository }}:latest

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
A GitHub Action for extracting files from a Docker Image.
44

55
```yaml
6-
- uses: shrink/actions-docker-extract@v3
6+
- uses: shrink/actions-docker-extract@v4
77
with:
88
image: "ghost:alpine"
99
path: "/var/lib/ghost/current/core/built/assets/."
1010
```
1111
12-
:warning: Due to a breaking change in v3 of GitHub's actions/upload-artifact, a
13-
low-impact breaking change has been made to v3.0.1 of this action. Please
14-
see [issues#28](https://github.com/shrink/actions-docker-extract/issues/28) for
15-
context and support.
16-
1712
## Inputs
1813
1914
| ID | Description | Required | Examples |
@@ -52,7 +47,7 @@ jobs:
5247
with:
5348
tags: my-example-image:latest
5449
load: true
55-
- uses: shrink/actions-docker-extract@v3
50+
- uses: shrink/actions-docker-extract@v4
5651
id: extract
5752
with:
5853
image: my-example-image:latest
@@ -81,7 +76,7 @@ jobs:
8176
registry: "ghcr.io"
8277
username: "${{ github.actor }}"
8378
password: "${{ secrets.GITHUB_TOKEN }}"
84-
- uses: shrink/actions-docker-extract@v3
79+
- uses: shrink/actions-docker-extract@v4
8580
id: extract
8681
with:
8782
image: ghcr.io/${{ github.repository }}:latest
@@ -100,8 +95,8 @@ tag. Any reference to this Action in a Workflow must use a [tag][tags] (mutable)
10095
or the commit hash of a tag (immutable).
10196

10297
```yaml
103-
✅ uses: shrink/actions-docker-extract@v3
104-
✅ uses: shrink/actions-docker-extract@v3.0.0
98+
✅ uses: shrink/actions-docker-extract@v4
99+
✅ uses: shrink/actions-docker-extract@v4.0.0
105100
✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6
106101
❌ uses: shrink/actions-docker-extract@main
107102
```

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ outputs:
1919
destination:
2020
description: 'Destination of extracted file(s)'
2121
runs:
22-
using: 'node20'
22+
using: 'node24'
2323
main: 'dist/index.js'
2424
branding:
2525
icon: 'scissors'

package-lock.json

Lines changed: 23 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@actions/exec": "^1.0.4"
2020
},
2121
"devDependencies": {
22-
"@zeit/ncc": "^0.22.3",
22+
"@vercel/ncc": "^0.38.4",
2323
"eslint": "^7.2.0",
2424
"eslint-config-airbnb": "^18.2.0",
2525
"eslint-plugin-import": "^2.22.0",

0 commit comments

Comments
 (0)