From 80b769af7c6205a1e8bc354f83def0f4a1855eed Mon Sep 17 00:00:00 2001 From: samarcyed Date: Wed, 12 Mar 2025 01:56:09 +0500 Subject: [PATCH 1/2] Create npm-publish-github-packages.yml --- .../workflows/npm-publish-github-packages.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/npm-publish-github-packages.yml diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml new file mode 100644 index 00000000..ea2d329f --- /dev/null +++ b/.github/workflows/npm-publish-github-packages.yml @@ -0,0 +1,36 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - run: npm test + + publish-gpr: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From a92bdcfd19c4a4583d3d8673b3bdb283af9860c8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 23 Mar 2025 21:09:39 +0000 Subject: [PATCH 2/2] fix: upgrade chai-as-promised from 7.1.1 to 7.1.2 Snyk has created this PR to upgrade chai-as-promised from 7.1.1 to 7.1.2. See this package in npm: chai-as-promised See this project in Snyk: https://app.snyk.io/org/syedsamarhussain/project/62f3f6c4-1d8f-4f50-8196-6653917c84e8?utm_source=github&utm_medium=referral&page=upgrade-pr --- sdk_contrib/fetch/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_contrib/fetch/package.json b/sdk_contrib/fetch/package.json index d360c27f..340697fe 100644 --- a/sdk_contrib/fetch/package.json +++ b/sdk_contrib/fetch/package.json @@ -40,7 +40,7 @@ "repository": "https://github.com/aws/aws-xray-sdk-node/tree/master/sdk_contrib/fetch", "devDependencies": { "@types/node-fetch": "^2.6.4", - "chai-as-promised": "=7.1.1", + "chai-as-promised": "7.1.2", "node-fetch": "^2.6.11", "ts-expect": "^1.3.0" },