Add trace logs to sov-db during commit (#2426) #177
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 (TypeScript) | |
| on: | |
| push: | |
| branches: ["dev"] | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Branch to run the workflow on" | |
| required: false | |
| default: "dev" | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: {} | |
| jobs: | |
| release: | |
| # prevents this action from running on forks | |
| if: github.repository == 'Sovereign-Labs/sovereign-sdk' | |
| permissions: | |
| contents: write # to create release (changesets/action) | |
| id-token: write # OpenID Connect token needed for provenance | |
| pull-requests: write # to create pull request (changesets/action) | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.branch || '' }} | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: ./typescript/package.json | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| cache: "pnpm" | |
| cache-dependency-path: "./typescript/pnpm-lock.yaml" | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.2.5 | |
| - name: Install dependencies | |
| run: pnpm install | |
| working-directory: ./typescript | |
| - name: Build | |
| run: pnpm build | |
| working-directory: ./typescript | |
| - name: Run Tests | |
| run: pnpm test | |
| working-directory: ./typescript | |
| - name: Create Release Pull Request or Publish to npm | |
| uses: Sovereign-Labs/[email protected] | |
| with: | |
| publish: pnpm release | |
| version: pnpm pkg-version | |
| cwd: ./typescript | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true |