From 15024708a3acc1c8c3ce182380d411cc8f47fca1 Mon Sep 17 00:00:00 2001 From: Jonathan Lee <107072447+jj22ee@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:38:10 -0700 Subject: [PATCH] Add workflow to deprecate sdk version (#659) --- .github/workflows/deprecate_version.yml | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deprecate_version.yml diff --git a/.github/workflows/deprecate_version.yml b/.github/workflows/deprecate_version.yml new file mode 100644 index 00000000..0c15426e --- /dev/null +++ b/.github/workflows/deprecate_version.yml @@ -0,0 +1,31 @@ +name: Deprecate X-Ray Node SDK Version +on: + workflow_dispatch: + +jobs: + deprecate_xray_node_sdk_version: + name: Deprecate X-Ray Node SDK version in NPM registry + runs-on: ubuntu-latest + steps: + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + + - run: npm install -g npm@8.19.4 + + - name: Deprecate Version 3.7.0 + run: | + npm deprecate aws-xray-sdk@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-core@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-express@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-postgres@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-mysql@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-restify@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-hapi@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-koa2@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-fastify@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + npm deprecate aws-xray-sdk-fetch@3.7.0 "3.7.0 is deprecated due to known issue in Lambda" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}