diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5ed3743d..ce5b081b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.0.0-beta.2" + ".": "6.0.0-beta.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0865bd1f..7b9db9fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 6.0.0-beta.3 (2024-07-31) + +Full Changelog: [v6.0.0-beta.2...v6.0.0-beta.3](https://github.com/intercom/intercom-node/compare/v6.0.0-beta.2...v6.0.0-beta.3) + +### Chores + +* **ci:** correctly tag pre-release npm packages ([#437](https://github.com/intercom/intercom-node/issues/437)) ([0553b28](https://github.com/intercom/intercom-node/commit/0553b28bc795f640167eb9592f855ea4cab5792d)) + ## 6.0.0-beta.2 (2024-07-30) Full Changelog: [v6.0.0-beta.1...v6.0.0-beta.2](https://github.com/intercom/intercom-node/compare/v6.0.0-beta.1...v6.0.0-beta.2) diff --git a/bin/publish-npm b/bin/publish-npm index 4d6c9f35..4c21181b 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -2,8 +2,24 @@ set -eux -npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN +npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" +# Build the project yarn build + +# Navigate to the dist directory cd dist -yarn publish --access public + +# Get the version from package.json +VERSION="$(node -p "require('./package.json').version")" + +# Extract the pre-release tag if it exists +if [[ "$VERSION" =~ -([a-zA-Z]+) ]]; then + # Extract the part before any dot in the pre-release identifier + TAG="${BASH_REMATCH[1]}" +else + TAG="latest" +fi + +# Publish with the appropriate tag +yarn publish --access public --tag "$TAG" diff --git a/package.json b/package.json index 18630442..4224de77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "intercom-client", - "version": "6.0.0-beta.2", + "version": "6.0.0-beta.3", "description": "The official TypeScript library for the Intercom API", "author": "Intercom ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 040a9049..b5df0ff3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '6.0.0-beta.2'; // x-release-please-version +export const VERSION = '6.0.0-beta.3'; // x-release-please-version