feat: add common net definitions to sel and include validation tests … #27
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: Publish to npm | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'lib/**' | |
| - 'package.json' | |
| - 'bun.lock' | |
| - 'README.md' | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }} | |
| - name: Setup bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - run: npm install -g pver | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - run: pver release | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }} | |
| - name: Trigger workflow dispatch in @tscircuit/eval repo | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}" \ | |
| https://api.github.com/repos/tscircuit/eval/actions/workflows/update-tscircuit-core.yml/dispatches \ | |
| -d '{"ref":"main"}' | |
| - name: Notify release-tracker of version update | |
| # Continue-on-error just in case the tracker is down | |
| continue-on-error: true | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| PACKAGE_JSON=$(cat package.json) | |
| curl -X POST https://release-tracker.tscircuit.com/release_events/create \ | |
| -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"event\": { | |
| \"event_type\": \"versions_updated\", | |
| \"repo\": \"tscircuit/core\", | |
| \"version\": \"$VERSION\", | |
| \"package_json\": $PACKAGE_JSON | |
| } | |
| }" |