fix: when host is using cjs, fallback to .default() for solfare sdk #340
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |