diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c83fb1b5..92091ba29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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] diff --git a/sdk/README.md b/sdk/README.md index 3d4f658f2..0e1c1a34d 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -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. +