Skip to content

Commit 27a0949

Browse files
release: 6.0.0-beta.3 (#438)
* chore(ci): correctly tag pre-release npm packages (#437) * release: 6.0.0-beta.3 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 8f7c33e commit 27a0949

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.0.0-beta.2"
2+
".": "6.0.0-beta.3"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 6.0.0-beta.3 (2024-07-31)
4+
5+
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)
6+
7+
### Chores
8+
9+
* **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))
10+
311
## 6.0.0-beta.2 (2024-07-30)
412

513
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)

bin/publish-npm

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22

33
set -eux
44

5-
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
5+
npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN"
66

7+
# Build the project
78
yarn build
9+
10+
# Navigate to the dist directory
811
cd dist
9-
yarn publish --access public
12+
13+
# Get the version from package.json
14+
VERSION="$(node -p "require('./package.json').version")"
15+
16+
# Extract the pre-release tag if it exists
17+
if [[ "$VERSION" =~ -([a-zA-Z]+) ]]; then
18+
# Extract the part before any dot in the pre-release identifier
19+
TAG="${BASH_REMATCH[1]}"
20+
else
21+
TAG="latest"
22+
fi
23+
24+
# Publish with the appropriate tag
25+
yarn publish --access public --tag "$TAG"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intercom-client",
3-
"version": "6.0.0-beta.2",
3+
"version": "6.0.0-beta.3",
44
"description": "The official TypeScript library for the Intercom API",
55
"author": "Intercom <[email protected]>",
66
"types": "dist/index.d.ts",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '6.0.0-beta.2'; // x-release-please-version
1+
export const VERSION = '6.0.0-beta.3'; // x-release-please-version

0 commit comments

Comments
 (0)