Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

fix switched commonjs & esm builds #43

fix switched commonjs & esm builds

fix switched commonjs & esm builds #43

Workflow file for this run

name: Node SDK - Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm install --force
- name: Build
run: npm run build
- name: Release to npm
working-directory: ./build
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}