Merge pull request #13 from ScriptedAlchemy/feat/cursor-host-adapter #12
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 packages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: package-release | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| # No npm release is cut yet; skip publishing until an NPM_TOKEN secret | |
| # exists instead of failing every push to main. Previews stay on | |
| # pkg.pr.new (docs/preview-packages.md). | |
| - id: gate | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: echo "enabled=${{ env.NPM_TOKEN != '' }}" >> "$GITHUB_OUTPUT" | |
| - if: steps.gate.outputs.enabled == 'true' | |
| uses: pnpm/setup@v2 | |
| with: | |
| cache: true | |
| install: false | |
| runtime: node@22.19.0 | |
| - if: steps.gate.outputs.enabled == 'true' | |
| run: pnpm install --frozen-lockfile | |
| - if: steps.gate.outputs.enabled == 'true' | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm release | |
| version: pnpm version-packages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |