Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}' \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading