diff --git a/.github/workflows/build_action.yaml b/.github/workflows/build_action.yaml index e9e44f9..f316ae1 100644 --- a/.github/workflows/build_action.yaml +++ b/.github/workflows/build_action.yaml @@ -7,9 +7,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 16 + node-version-file: "package.json" - run: npm install - name: Build action (if not already built) if: "!startsWith(github.ref, 'refs/heads/release')" diff --git a/.github/workflows/directory.yml b/.github/workflows/directory.yml index 6172be0..6447161 100644 --- a/.github/workflows/directory.yml +++ b/.github/workflows/directory.yml @@ -12,9 +12,9 @@ jobs: name: Extract Contents of Directory from Example Image steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: @@ -39,9 +39,9 @@ jobs: name: Extract Nested Directory from Example Image steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: @@ -62,9 +62,9 @@ jobs: name: Extract Nested Contents of Directory from Example Image steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: diff --git a/.github/workflows/file.yml b/.github/workflows/file.yml index acb7f60..4e558cc 100644 --- a/.github/workflows/file.yml +++ b/.github/workflows/file.yml @@ -12,9 +12,9 @@ jobs: name: Extract Example File From Root of Built Image steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: @@ -34,9 +34,9 @@ jobs: name: Extract Nexted Example File From Built Image steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: diff --git a/.github/workflows/package-action.yaml b/.github/workflows/package-action.yaml index 6e8d518..8a8ec58 100644 --- a/.github/workflows/package-action.yaml +++ b/.github/workflows/package-action.yaml @@ -18,9 +18,9 @@ jobs: ref: "${{ env.release }}" fetch-depth: 0 ssh-key: "${{ secrets.COMMIT_KEY }}" - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 16 + node-version-file: "package.json" - uses: prompt/actions-merge-branch@v2 with: from: "origin/${{ env.source }}" diff --git a/.github/workflows/platforms.yml b/.github/workflows/platforms.yml index 7c1d2f0..9442c33 100644 --- a/.github/workflows/platforms.yml +++ b/.github/workflows/platforms.yml @@ -12,9 +12,9 @@ jobs: name: Extract Example File on Ubuntu steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Load action build from cache uses: actions/cache@v4 with: @@ -35,9 +35,9 @@ jobs: name: Extract Example File on macOS steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: "package.json" - name: Install Docker uses: douglascamata/setup-docker-macos-action@main - run: docker build -t example:${{ github.sha }} ./.github/tests diff --git a/.github/workflows/test-readme.yaml b/.github/workflows/test-readme.yaml index 470acc6..ee9d2bd 100644 --- a/.github/workflows/test-readme.yaml +++ b/.github/workflows/test-readme.yaml @@ -13,7 +13,7 @@ jobs: context: ./.github/tests tags: my-example-image:latest load: true - - uses: shrink/actions-docker-extract@v3 + - uses: shrink/actions-docker-extract@v4 id: extract with: image: my-example-image:latest @@ -51,7 +51,7 @@ jobs: registry: "ghcr.io" username: "${{ github.actor }}" password: "${{ secrets.GITHUB_TOKEN }}" - - uses: shrink/actions-docker-extract@v3 + - uses: shrink/actions-docker-extract@v4 id: extract with: image: ghcr.io/${{ github.repository }}:latest diff --git a/README.md b/README.md index fcc0868..f638a24 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,12 @@ A GitHub Action for extracting files from a Docker Image. ```yaml -- uses: shrink/actions-docker-extract@v3 +- uses: shrink/actions-docker-extract@v4 with: image: "ghost:alpine" path: "/var/lib/ghost/current/core/built/assets/." ``` -:warning: Due to a breaking change in v3 of GitHub's actions/upload-artifact, a -low-impact breaking change has been made to v3.0.1 of this action. Please -see [issues#28](https://github.com/shrink/actions-docker-extract/issues/28) for -context and support. - ## Inputs | ID | Description | Required | Examples | @@ -52,7 +47,7 @@ jobs: with: tags: my-example-image:latest load: true - - uses: shrink/actions-docker-extract@v3 + - uses: shrink/actions-docker-extract@v4 id: extract with: image: my-example-image:latest @@ -81,7 +76,7 @@ jobs: registry: "ghcr.io" username: "${{ github.actor }}" password: "${{ secrets.GITHUB_TOKEN }}" - - uses: shrink/actions-docker-extract@v3 + - uses: shrink/actions-docker-extract@v4 id: extract with: 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) or the commit hash of a tag (immutable). ```yaml -✅ uses: shrink/actions-docker-extract@v3 -✅ uses: shrink/actions-docker-extract@v3.0.0 +✅ uses: shrink/actions-docker-extract@v4 +✅ uses: shrink/actions-docker-extract@v4.0.0 ✅ uses: shrink/actions-docker-extract@40400b42f4f8b663c647f535e2c6674658e39fc6 ❌ uses: shrink/actions-docker-extract@main ``` diff --git a/action.yml b/action.yml index 430eed0..7b03bd8 100644 --- a/action.yml +++ b/action.yml @@ -19,7 +19,7 @@ outputs: destination: description: 'Destination of extracted file(s)' runs: - using: 'node20' + using: 'node24' main: 'dist/index.js' branding: icon: 'scissors' diff --git a/package-lock.json b/package-lock.json index 1e94493..558c07f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@actions/exec": "^1.0.4" }, "devDependencies": { - "@zeit/ncc": "^0.22.3", + "@vercel/ncc": "^0.38.4", "eslint": "^7.2.0", "eslint-config-airbnb": "^18.2.0", "eslint-plugin-import": "^2.22.0", @@ -224,12 +224,12 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "node_modules/@zeit/ncc": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz", - "integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==", - "deprecated": "@zeit/ncc is no longer maintained. Please use @vercel/ncc instead.", + "node_modules/@vercel/ncc": { + "version": "0.38.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz", + "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==", "dev": true, + "license": "MIT", "bin": { "ncc": "dist/ncc/cli.js" } @@ -239,6 +239,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -689,6 +690,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", "dev": true, + "peer": true, "dependencies": { "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.4.3", @@ -830,6 +832,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, + "peer": true, "dependencies": { "array-includes": "^3.1.4", "array.prototype.flat": "^1.2.5", @@ -884,6 +887,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", "dev": true, + "peer": true, "dependencies": { "@babel/runtime": "^7.18.9", "aria-query": "^4.2.2", @@ -920,6 +924,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", "dev": true, + "peer": true, "dependencies": { "array-includes": "^3.1.6", "array.prototype.flatmap": "^1.3.1", @@ -949,6 +954,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", "dev": true, + "peer": true, "engines": { "node": ">=10" }, @@ -2645,17 +2651,18 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "@zeit/ncc": { - "version": "0.22.3", - "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz", - "integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==", + "@vercel/ncc": { + "version": "0.38.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz", + "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==", "dev": true }, "acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true + "dev": true, + "peer": true }, "acorn-jsx": { "version": "5.3.2", @@ -2994,6 +3001,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", "dev": true, + "peer": true, "requires": { "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.4.3", @@ -3105,6 +3113,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, + "peer": true, "requires": { "array-includes": "^3.1.4", "array.prototype.flat": "^1.2.5", @@ -3152,6 +3161,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", "dev": true, + "peer": true, "requires": { "@babel/runtime": "^7.18.9", "aria-query": "^4.2.2", @@ -3181,6 +3191,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", "dev": true, + "peer": true, "requires": { "array-includes": "^3.1.6", "array.prototype.flatmap": "^1.3.1", @@ -3232,6 +3243,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", "dev": true, + "peer": true, "requires": {} }, "eslint-scope": { diff --git a/package.json b/package.json index a6e9af2..23215fa 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@actions/exec": "^1.0.4" }, "devDependencies": { - "@zeit/ncc": "^0.22.3", + "@vercel/ncc": "^0.38.4", "eslint": "^7.2.0", "eslint-config-airbnb": "^18.2.0", "eslint-plugin-import": "^2.22.0",