diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 24164df..b36b483 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -95,8 +95,15 @@ jobs: - name: Notify Slack - Release Completed if: success() run: | - RESULTS=$(printf 'Release : %s\nRun : %s' \ - "${{ steps.release.outputs.version || 'No new release published' }}" \ + PKG_NAME=$(node -p "require('./package.json').name") + VERSION="${{ steps.release.outputs.version }}" + if [ -n "$VERSION" ]; then + RELEASE_LINE="Release : https://www.npmjs.com/package/${PKG_NAME}/v/${VERSION}" + else + RELEASE_LINE="Release : No new release published" + fi + RESULTS=$(printf '%s\nRun : %s' \ + "$RELEASE_LINE" \ "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}") jq -n --arg results "$RESULTS" \ '{sdk: "networking-node-sdk", language: "node", status: "completed", actor: "${{ github.actor }}", results: $results}' \ diff --git a/README.md b/README.md index 6db8e42..f09fa0a 100755 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Service Name | Import Path ## Prerequisites * You need an [IBM Cloud][ibm-cloud-onboarding] account. -* **Node.js >=10**: This SDK is tested with Node.js versions 10 and up. It may work on previous versions but this is not officially supported. +* **Node.js >=22**: This SDK is tested with Node.js versions 22 and up. It may work on previous versions but this is not officially supported. [ibm-cloud-onboarding]: http://cloud.ibm.com/registration diff --git a/package.json b/package.json index e3ce759..4e7e0a9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "tslint:check": "tslint -p . -c ./tslint.json", "lint": "npm run eslint:check && npm run tslint:check", "lint-fix": "npm run eslint:fix && npm run tslint:fix", - "build": "tsc && cp package.json dist/", + "build": "tsc && cp package.json README.md dist/", "prepublishOnly": "npm run build", "postversion": "tsc-publish --no-checks --dry-run", "jest": "jest",