From d261a413a51333f925c4240e301691fbf41cf380 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 22 Mar 2022 15:41:10 +0900 Subject: [PATCH] Update runtime to node 16 --- .github/workflows/ci.yml | 20 +++++++------- .github/workflows/dependabot.yml | 8 ++++++ README.md | 10 +++---- action.yml | 2 +- package-lock.json | 46 ++++++++++++++++---------------- package.json | 2 +- 6 files changed, 48 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36ada0b..090cbda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,20 +14,20 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 12.x + node-version: 16.x - run: npm ci - run: npm run build - run: npm run format-check - run: npm run lint - run: npm run test - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: dist path: dist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: action.yml path: action.yml @@ -39,14 +39,14 @@ jobs: matrix: target: [built, committed] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - if: matrix.target == 'built' || github.event_name == 'pull_request' - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: dist path: dist - if: matrix.target == 'built' || github.event_name == 'pull_request' - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: action.yml path: . @@ -127,8 +127,8 @@ jobs: needs: [test] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: dist path: dist diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..b85dc18 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" diff --git a/README.md b/README.md index 8d1cfb9..9f21ef8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The action will output the comment ID of the comment matching the search criteri ```yml - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: 1 @@ -23,7 +23,7 @@ The action will output the comment ID of the comment matching the search criteri ```yml - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: 1 @@ -34,7 +34,7 @@ The action will output the comment ID of the comment matching the search criteri ```yml - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: 1 @@ -46,7 +46,7 @@ The action will output the comment ID of the comment matching the search criteri ```yml - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: 1 @@ -76,7 +76,7 @@ e.g. If `comment-id` is an empty string `steps.fc.outputs.comment-id == 0` evalu ```yml - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: fc with: issue-number: 1 diff --git a/action.yml b/action.yml index b18bad7..8990640 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ outputs: comment-author: description: 'The author of the matching comment found.' runs: - using: 'node12' + using: 'node16' main: 'dist/index.js' branding: icon: 'search' diff --git a/package-lock.json b/package-lock.json index 5c05ed6..4cda7c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,31 +1,31 @@ { "name": "find-comment", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "find-comment", - "version": "1.0.0", + "version": "2.0.0", "license": "MIT", "dependencies": { - "@actions/core": "1.6.0", - "@actions/github": "5.0.0" + "@actions/core": "^1.6.0", + "@actions/github": "^5.0.0" }, "devDependencies": { - "@types/jest": "27.0.3", - "@types/node": "16.11.11", - "@typescript-eslint/parser": "5.5.0", - "@vercel/ncc": "0.32.0", - "eslint": "8.3.0", - "eslint-plugin-github": "4.3.5", - "eslint-plugin-jest": "25.3.0", - "jest": "27.4.3", - "jest-circus": "27.4.2", - "js-yaml": "4.1.0", - "prettier": "2.5.0", - "ts-jest": "27.0.7", - "typescript": "4.5.2" + "@types/jest": "^27.0.3", + "@types/node": "^16.11.11", + "@typescript-eslint/parser": "^5.5.0", + "@vercel/ncc": "^0.32.0", + "eslint": "^8.3.0", + "eslint-plugin-github": "^4.3.5", + "eslint-plugin-jest": "^25.3.0", + "jest": "^27.4.3", + "jest-circus": "^27.4.2", + "js-yaml": "^4.1.0", + "prettier": "^2.5.0", + "ts-jest": "^27.0.7", + "typescript": "^4.5.2" } }, "node_modules/@actions/core": { @@ -4876,9 +4876,9 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "node_modules/ms": { @@ -9967,9 +9967,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "ms": { diff --git a/package.json b/package.json index 23726e3..e357e3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "find-comment", - "version": "1.0.0", + "version": "2.0.0", "private": true, "description": "Find an issue or pull request comment", "main": "lib/main.js",