From 997979fa5b5b30ab54befdaf5061851c7160efb1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 23:50:09 +0000 Subject: [PATCH 1/3] Update dependency @types/node to v22.9.4 (#1067) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`22.9.3` -> `22.9.4`](https://renovatebot.com/diffs/npm/@types%2fnode/22.9.3/22.9.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/22.9.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/22.9.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/22.9.3/22.9.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/22.9.3/22.9.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration πŸ“… **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. β™» **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/line/line-bot-sdk-nodejs). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5d60c68a..b73a07ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1670,9 +1670,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.9.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.3.tgz", - "integrity": "sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw==", + "version": "22.9.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.4.tgz", + "integrity": "sha512-d9RWfoR7JC/87vj7n+PVTzGg9hDyuFjir3RxUHbjFSKNd9mpxbxwMEyaCim/ddCmy4IuW7HjTzF3g9p3EtWEOg==", "license": "MIT", "dependencies": { "undici-types": "~6.19.8" From 0c8bb2e3016f15f4408c27c5f60bbf14a7e70677 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 26 Nov 2024 02:22:39 +0000 Subject: [PATCH 2/3] Update dependency axios to v1.7.8 (#1068) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [axios](https://axios-http.com) ([source](https://redirect.github.com/axios/axios)) | [`1.7.7` -> `1.7.8`](https://renovatebot.com/diffs/npm/axios/1.7.7/1.7.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/axios/1.7.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/axios/1.7.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/axios/1.7.7/1.7.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/axios/1.7.7/1.7.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
axios/axios (axios) ### [`v1.7.8`](https://redirect.github.com/axios/axios/blob/HEAD/CHANGELOG.md#178-2024-11-25) [Compare Source](https://redirect.github.com/axios/axios/compare/v1.7.7...v1.7.8) ##### Bug Fixes - allow passing a callback as paramsSerializer to buildURL ([#​6680](https://redirect.github.com/axios/axios/issues/6680)) ([eac4619](https://redirect.github.com/axios/axios/commit/eac4619fe2e0926e876cd260ee21e3690381dbb5)) - **core:** fixed config merging bug ([#​6668](https://redirect.github.com/axios/axios/issues/6668)) ([5d99fe4](https://redirect.github.com/axios/axios/commit/5d99fe4491202a6268c71e5dcc09192359d73cea)) - fixed width form to not shrink after 'Send Request' button is clicked ([#​6644](https://redirect.github.com/axios/axios/issues/6644)) ([7ccd5fd](https://redirect.github.com/axios/axios/commit/7ccd5fd42402102d38712c32707bf055be72ab54)) - **http:** add support for File objects as payload in http adapter ([#​6588](https://redirect.github.com/axios/axios/issues/6588)) ([#​6605](https://redirect.github.com/axios/axios/issues/6605)) ([6841d8d](https://redirect.github.com/axios/axios/commit/6841d8d18ddc71cc1bd202ffcfddb3f95622eef3)) - **http:** fixed proxy-from-env module import ([#​5222](https://redirect.github.com/axios/axios/issues/5222)) ([12b3295](https://redirect.github.com/axios/axios/commit/12b32957f1258aee94ef859809ed39f8f88f9dfa)) - **http:** use `globalThis.TextEncoder` when available ([#​6634](https://redirect.github.com/axios/axios/issues/6634)) ([df956d1](https://redirect.github.com/axios/axios/commit/df956d18febc9100a563298dfdf0f102c3d15410)) - ios11 breaks when build ([#​6608](https://redirect.github.com/axios/axios/issues/6608)) ([7638952](https://redirect.github.com/axios/axios/commit/763895270f7b50c7c780c3c9807ae8635de952cd)) - **types:** add missing types for mergeConfig function ([#​6590](https://redirect.github.com/axios/axios/issues/6590)) ([00de614](https://redirect.github.com/axios/axios/commit/00de614cd07b7149af335e202aef0e076c254f49)) - **types:** export CJS types from ESM ([#​6218](https://redirect.github.com/axios/axios/issues/6218)) ([c71811b](https://redirect.github.com/axios/axios/commit/c71811b00f2fcff558e4382ba913bdac4ad7200e)) - updated stream aborted error message to be more clear ([#​6615](https://redirect.github.com/axios/axios/issues/6615)) ([cc3217a](https://redirect.github.com/axios/axios/commit/cc3217a612024d83a663722a56d7a98d8759c6d5)) - use URL API instead of DOM to fix a potential vulnerability warning; ([#​6714](https://redirect.github.com/axios/axios/issues/6714)) ([0a8d6e1](https://redirect.github.com/axios/axios/commit/0a8d6e19da5b9899a2abafaaa06a75ee548597db)) ##### Contributors to this release - avatar [Remco Haszing](https://redirect.github.com/remcohaszing "+108/-596 (#​6218 )") - avatar [Jay](https://redirect.github.com/jasonsaayman "+281/-19 (#​6640 #​6619 )") - avatar [Aayush Yadav](https://redirect.github.com/aayushyadav020 "+124/-111 (#​6617 )") - avatar [Dmitriy Mozgovoy](https://redirect.github.com/DigitalBrainJS "+12/-65 (#​6714 )") - avatar [Ell Bradshaw](https://redirect.github.com/cincodenada "+29/-0 (#​6489 )") - avatar [Amit Saini](https://redirect.github.com/amitsainii "+13/-3 (#​5237 )") - avatar [Tommaso Paulon](https://redirect.github.com/guuido "+14/-1 (#​6680 )") - avatar [Akki](https://redirect.github.com/Aakash-Rana "+5/-5 (#​6668 )") - avatar [Sampo Silvennoinen](https://redirect.github.com/stscoundrel "+3/-3 (#​6633 )") - avatar [Kasper Isager DalsgarΓ°](https://redirect.github.com/kasperisager "+2/-2 (#​6634 )") - avatar [Christian Clauss](https://redirect.github.com/cclauss "+4/-0 (#​6683 )") - avatar [Pavan Welihinda](https://redirect.github.com/pavan168 "+2/-2 (#​5222 )") - avatar [Taylor Flatt](https://redirect.github.com/taylorflatt "+2/-2 (#​6615 )") - avatar [Kenzo Wada](https://redirect.github.com/Kenzo-Wada "+2/-2 (#​6608 )") - avatar [Ngole Lawson](https://redirect.github.com/echelonnought "+3/-0 (#​6644 )") - avatar [Haven](https://redirect.github.com/Baoyx007 "+3/-0 (#​6590 )") - avatar [Shrivali Dutt](https://redirect.github.com/shrivalidutt "+1/-1 (#​6637 )") - avatar [Henco Appel](https://redirect.github.com/hencoappel "+1/-1 (#​6605 )")
--- ### Configuration πŸ“… **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. β™» **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/line/line-bot-sdk-nodejs). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b73a07ed..baa59bf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.0-test", "license": "Apache-2.0", "dependencies": { - "@types/node": "^22.0.0" + "@types/node": "^22.0.0", + "axios": "^1.7.8" }, "devDependencies": { "@types/express": "5.0.0", @@ -2495,9 +2496,9 @@ "optional": true }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "license": "MIT", "optional": true, "dependencies": { From ba674de5ef85755efa6099e07ed8f4f729eb09c4 Mon Sep 17 00:00:00 2001 From: Yuta Kasai Date: Tue, 26 Nov 2024 11:45:17 +0900 Subject: [PATCH 3/3] Open issue when release failed (#1065) When release job fails, we may not realize the issue. Let's open issue to notify us the release job failed. I've tested this change and it opened an issue like this. - title contains the release(d) version - actor is assigned - description contains failed job url ![image](https://github.com/user-attachments/assets/d2f0464d-2d0f-413a-b0df-da7966289e7e) --- .github/workflows/deploy-doc.yml | 36 ++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 20 ++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/.github/workflows/deploy-doc.yml b/.github/workflows/deploy-doc.yml index bf0be0b1..0681b994 100644 --- a/.github/workflows/deploy-doc.yml +++ b/.github/workflows/deploy-doc.yml @@ -37,6 +37,24 @@ jobs: with: path: docs/.vitepress/dist + - name: Create GitHub Issue on Failure + if: failure() + uses: actions/github-script@v7 + with: + script: | + const { owner, repo } = context.repo; + const issueTitle = `build-page job failed`; + const issueBody = `The build-page job failed. Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`; + const assignees = [context.actor]; + + await github.rest.issues.create({ + owner, + repo, + title: issueTitle, + body: issueBody, + assignees + }); + deploy: environment: name: github-pages @@ -48,3 +66,21 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + + - name: Create GitHub Issue on Failure + if: failure() + uses: actions/github-script@v7 + with: + script: | + const { owner, repo } = context.repo; + const issueTitle = `deploy-page job failed`; + const issueBody = `The deploy-page job failed. Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`; + const assignees = [context.actor]; + + await github.rest.issues.create({ + owner, + repo, + title: issueTitle, + body: issueBody, + assignees + }); diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea6f5602..d2da5599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,11 +27,31 @@ jobs: VERSION=${{ github.event.release.tag_name }} fi VERSION=${VERSION#v} + echo "VERSION=$VERSION" >> $GITHUB_ENV node ./scripts/update-version.mjs $VERSION - run: npm run release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_2 }} + - name: Create GitHub Issue on Failure + if: failure() + uses: actions/github-script@v7 + with: + script: | + const { owner, repo } = context.repo; + const version = process.env.VERSION; + const issueTitle = `Release job for ${version} failed`; + const issueBody = `The release job failed. Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.`; + const assignees = [context.actor]; + + await github.rest.issues.create({ + owner, + repo, + title: issueTitle, + body: issueBody, + assignees + }); + deploy-docs: needs: [release-package] uses: ./.github/workflows/deploy-doc.yml