chore: rename pol chain enum #3433
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: Run build, test & publish | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - nightly | |
| - v3 | |
| jobs: | |
| build-lint-test: | |
| if: contains(github.event.pull_request.title, ':tada:') == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Repo | |
| uses: ./tools/github/setup-repo | |
| - name: Build | |
| run: bun install; bun run build | |
| - name: Lint Packages | |
| run: | | |
| bun --filter='./packages/toolboxes/**' lint && bun --filter='./packages/toolboxes/**' type-check | |
| bun --filter='./packages/wallets/**' lint && bun --filter='./packages/wallets/**' type-check | |
| bun --filter='./packages/plugins/**' lint && bun --filter='./packages/plugins/**' type-check | |
| bun --filter='./packages/swapkit/**' lint && bun --filter='./packages/swapkit/**' type-check | |
| - name: Lint Playgrounds | |
| continue-on-error: true | |
| run: bun --filter='./playgrounds/**' lint && bun --filter='./playgrounds/**' type-check | |
| - name: Test | |
| if: contains(github.ref_name, 'nightly') == false | |
| run: bun run test | |
| publish: | |
| if: contains(github.ref_name, 'v3') || contains(github.ref_name, 'nightly') | |
| needs: [build-lint-test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Repo | |
| uses: ./tools/github/setup-repo | |
| - name: Replace versions | |
| run: bun run ./scripts/replace-versions.ts | |
| - name: Copy npmrc config | |
| run: cp .npmrc.prod .npmrc | |
| - name: Change nightly changeset | |
| if: contains(github.ref_name, 'nightly') | |
| run: | | |
| bun changeset version --snapshot nightly | |
| - name: Set job params | |
| shell: bash | |
| id: deployment-params | |
| run: | | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| - name: Create Pull Request or Publish to npm | |
| uses: changesets/action@v1.4.10 | |
| if: contains(github.ref_name, 'v3') | |
| with: | |
| title: ":tada: Publish v3" | |
| version: bun version-bump | |
| publish: bun publish-packages --tag latest --no-git-tag | |
| setupGitUser: false | |
| createGithubReleases: false | |
| - name: Publish Nightly to npm | |
| uses: changesets/action@v1.4.10 | |
| if: contains(github.ref_name, 'nightly') | |
| with: | |
| title: ":tada: Publish Nightly" | |
| version: bun version-bump | |
| publish: bun publish-packages --tag nightly --no-git-tag | |
| setupGitUser: false | |
| createGithubReleases: false |