Skip to content

Commit

Permalink
release: 6.0.0-beta.3 (#438)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
stainless-app[bot] authored Aug 1, 2024
1 parent 8f7c33e commit 27a0949
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "6.0.0-beta.2"
".": "6.0.0-beta.3"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
20 changes: 18 additions & 2 deletions bin/publish-npm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27a0949

Please sign in to comment.