chore: bump to v0.22.3 #129
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: API Publish | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Release tag (e.g. v1.2.3)' | |
| required: false | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| runs-on: depot-ubuntu-24.04 | |
| defaults: | |
| run: | |
| working-directory: ./src/typescript/api | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org | |
| - name: Set version from tag | |
| run: | | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
| TAG_NAME=${{ github.event.inputs.tag }} | |
| else | |
| TAG_NAME=${GITHUB_REF_NAME} | |
| fi | |
| if [ -z "$TAG_NAME" ]; then | |
| echo "Error: No tag specified." | |
| exit 1 | |
| fi | |
| npm version "$TAG_NAME" --no-git-tag-version | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build package | |
| run: npm run build | |
| - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c | |
| with: | |
| token: ${{ secrets.NPM_TOKEN }} | |
| package: ./src/typescript/api | |