fix(sdk): add bun entrypoints to exports for build compatibility #17
This file contains hidden or 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: Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| build-lint-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.head_ref }} | |
| - name: Setup Repo | |
| uses: ./tools/github/setup-repo | |
| with: | |
| npm-token: ${{ secrets.NPM_TOKEN }} | |
| - run: bun build:ci | |
| - run: bun lint | |
| - run: bun type-check:ci | |
| publish: | |
| needs: [build-lint-test] | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.head_ref }} | |
| - name: Setup Repo | |
| uses: ./tools/github/setup-repo | |
| with: | |
| npm-token: ${{ secrets.NPM_TOKEN }} | |
| - name: Upgrade npm for OIDC trusted publishing | |
| run: npm install -g npm@11 | |
| - name: Copy npmrc config | |
| run: cp .npmrc.prod .npmrc | |
| - name: Set job params | |
| shell: bash | |
| run: | | |
| git config --global user.email "swapkit@users.noreply.github.com" | |
| git config --global user.name "swapkit" | |
| - name: Create Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1.4.10 | |
| with: | |
| title: ":tada: Publish Wallets Release" | |
| version: bun version-bump | |
| publish: bun publish-packages | |
| setupGitUser: false | |
| createGithubReleases: false |