Merge pull request #130 from ably/release/0.16.0 #19
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: npm release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: cli-release-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: "write" | |
| id-token: "write" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 10 # Use pnpm version 10 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| with: | |
| node-version: "22.x" # Use Node.js 22.x | |
| cache: "pnpm" | |
| registry-url: "https://registry.npmjs.org/" | |
| - name: Install dependencies and publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm run build | |
| pnpm publish --provenance --access public --no-git-checks |