diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 05b74f3..f96bb6a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,7 +8,7 @@ on: jobs: CodeQL-Build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/purge-readme-image-cache.yml b/.github/workflows/purge-readme-image-cache.yml index d4d2bc9..0b078eb 100644 --- a/.github/workflows/purge-readme-image-cache.yml +++ b/.github/workflows/purge-readme-image-cache.yml @@ -6,7 +6,7 @@ on: jobs: purge: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - run: > diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19340dd..c8e59ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 049607d..fade6cf 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -12,7 +12,7 @@ jobs: matrix: os: - 'ubuntu-latest' - - 'ubuntu-18.04' + - 'ubuntu-20.04' - 'macos-latest' - 'windows-latest' mdbook-version: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3916125..65b0a1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: matrix: os: - 'ubuntu-latest' - - 'ubuntu-18.04' + - 'ubuntu-20.04' - 'macos-latest' - 'windows-latest' steps: @@ -35,15 +35,15 @@ jobs: - run: npm ci - name: Run prettier - if: ${{ startsWith(matrix.os, 'ubuntu-18.04') }} + if: ${{ startsWith(matrix.os, 'ubuntu-latest') }} run: npm run format:check - name: Run eslint - if: ${{ startsWith(matrix.os, 'ubuntu-18.04') }} + if: ${{ startsWith(matrix.os, 'ubuntu-latest') }} run: npm run lint - name: Run ncc - if: ${{ startsWith(matrix.os, 'ubuntu-18.04') }} + if: ${{ startsWith(matrix.os, 'ubuntu-latest') }} run: npm run build - run: npm test diff --git a/.nvmrc b/.nvmrc index 39514a9..94f5f26 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12.22.4 +16.18.0 diff --git a/README.md b/README.md index a6a0b9d..9ec4500 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ GitHub Actions for mdBook We can run **mdBook** on a virtual machine of **GitHub Actions** by this mdBook action. Linux, macOS, and Windows are supported. -| OS (runs-on) | ubuntu-18.04, ubuntu-20.04 | macos-latest | windows-2019 | +| OS (runs-on) | ubuntu-20.04, ubuntu-22.04 | macos-latest | windows-2019 | |---|:---:|:---:|:---:| | Support | ✅️ | ✅️ | ✅️ | diff --git a/action.yml b/action.yml index 1765a83..e7e9a93 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: required: false default: 'latest' runs: - using: 'node12' + using: 'node16' main: 'lib/index.js' branding: icon: 'book-open' diff --git a/package-lock.json b/package-lock.json index b13cb73..acdd71d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,11 +5,12 @@ "requires": true, "packages": { "": { + "name": "actions-mdbook", "version": "1.1.14", "hasInstallScript": true, "license": "MIT", "dependencies": { - "@actions/core": "^1.6.0", + "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.0", "@actions/tool-cache": "^1.7.2", @@ -34,11 +35,28 @@ } }, "node_modules/@actions/core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz", - "integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", + "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", "dependencies": { - "@actions/http-client": "^1.0.11" + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" + } + }, + "node_modules/@actions/core/node_modules/@actions/http-client": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", + "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", + "dependencies": { + "tunnel": "^0.0.6" + } + }, + "node_modules/@actions/core/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" } }, "node_modules/@actions/exec": { @@ -9578,11 +9596,27 @@ }, "dependencies": { "@actions/core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz", - "integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", + "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", "requires": { - "@actions/http-client": "^1.0.11" + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" + }, + "dependencies": { + "@actions/http-client": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", + "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", + "requires": { + "tunnel": "^0.0.6" + } + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + } } }, "@actions/exec": { diff --git a/package.json b/package.json index eadb9dd..e17ab4d 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "homepage": "https://github.com/peaceiris/actions-mdbook#readme", "dependencies": { - "@actions/core": "^1.6.0", + "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", "@actions/io": "^1.1.0", "@actions/tool-cache": "^1.7.2",