Skip to content

Commit

Permalink
add browser preid to npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Dec 13, 2024
1 parent f3bfe43 commit bfc7961
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ jobs:
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build sdk for browser
run: yarn
- run: yarn build:browser
- name: Update browser package version
run: |
VERSION=$(node -e "console.log(require('./package.json').version);")
[[ "$VERSION" == *beta* ]] && npm version prerelease --preid=beta.browser || npm version preminor --preid=beta.browser
- name: Publish browser version to npm
run: npm publish --access=public
emit-dispatch-events:
runs-on: ubicloud
needs: [release, check-for-sdk-changes]
Expand Down
1 change: 1 addition & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,4 @@ Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in Drift SDK by you, as defined in the Apache-2.0 license, shall be
licensed as above, without any additional terms or conditions.


0 comments on commit bfc7961

Please sign in to comment.