Release dumplingai-cli v0.2.3 #11
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: Publish to npm | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| publish: | |
| name: Publish dumplingai-cli | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write # for npm provenance | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| # npm trusted publishing requires npm >= 11.5.1 (Node >= 22.14.0). | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run --workspace=dumplingai-cli typecheck | |
| - name: Test | |
| run: npm run --workspace=dumplingai-cli test | |
| - name: Build | |
| run: npm run --workspace=dumplingai-cli build | |
| - name: Show npm version | |
| run: npm --version | |
| - name: Publish | |
| working-directory: packages/cli | |
| run: npm publish --provenance --access public |