Publish Single Package to npmjs #3
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 Single Package to npmjs | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| package: | |
| description: "Name of the package to publish (e.g. uiexport)" | |
| required: true | |
| type: string | |
| jobs: | |
| publish-single: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24.x" | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "pnpm" | |
| - run: pnpm install --frozen-lockfile | |
| - name: Publish single package | |
| run: pnpm publish --filter ${{ github.event.inputs.package }} --no-git-checks |