Skip to content

Fix Javascript SDK's UMD build (#226) #178

Fix Javascript SDK's UMD build (#226)

Fix Javascript SDK's UMD build (#226) #178

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Get Release token
id: release_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.RELEASE_APP_ID }}
application_private_key: ${{ secrets.RELEASE_APP_KEY }}
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ steps.release_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}