Skip to content

fix: when host is using cjs, fallback to .default() for solfare sdk #340

fix: when host is using cjs, fallback to .default() for solfare sdk

fix: when host is using cjs, fallback to .default() for solfare sdk #340

Workflow file for this run

name: Publish
on:
push:
branches:
- 'main'
- 'next'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- run: git pull
- name: Prepare
uses: ./.github/actions/prepare
- name: Build, Version & Publish packages
run: yarn run publish
env:
REF: ${{ github.ref }}
GH_TOKEN: ${{ github.token }}
# Github will create .npmrc based on this env variable.
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}