fix(rust): decimal validation now accepts strings per spec #58
Workflow file for this run
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: TypeScript SDK | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| paths: | |
| - 'typescript/**' | |
| - 'meta/**' | |
| - '.github/workflows/typescript.yml' | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'typescript/**' | |
| - 'meta/**' | |
| - '.github/workflows/typescript.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| working-directory: typescript | |
| run: npm ci | |
| - name: Build | |
| working-directory: typescript | |
| run: npm run build | |
| - name: Type check | |
| working-directory: typescript | |
| run: npm run typecheck | |
| - name: Run tests | |
| working-directory: typescript | |
| run: npm test | |
| - name: Upload build artifacts | |
| if: matrix.node-version == '20.x' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: typescript-package | |
| path: | | |
| typescript/dist/ | |
| typescript/package.json | |
| typescript/README.md | |
| typescript/LICENSE | |
| retention-days: 30 | |
| publish: | |
| name: Publish to npm | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| permissions: | |
| contents: read | |
| id-token: write # Required for npm trusted publishing (OIDC) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Update npm for trusted publishing | |
| run: npm install -g npm@latest | |
| - name: Extract version from tag | |
| id: get_version | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/v} | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Extracted version: $VERSION" | |
| - name: Update package.json version | |
| working-directory: typescript | |
| run: npm version ${{ steps.get_version.outputs.VERSION }} --no-git-tag-version | |
| - name: Install dependencies | |
| working-directory: typescript | |
| run: npm ci | |
| - name: Build | |
| working-directory: typescript | |
| run: npm run build | |
| - name: Publish to npm (trusted publishing) | |
| working-directory: typescript | |
| run: npm publish --access public |