Skip to content

Export SDK as both CJS and ESM modules (#20) #1

Export SDK as both CJS and ESM modules (#20)

Export SDK as both CJS and ESM modules (#20) #1

Workflow file for this run

name: Publish to Beta Tag
on:
push:
branches:
- release/beta
jobs:
run-publish:
name: Run publish
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Check out git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: "yarn"
registry-url: 'https://registry.npmjs.org'
- name: Install yarn dependencies
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
run: yarn publish:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}