deps: pnpm 10.28.2 (#383) #384
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| name: Publish & Deploy | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| env: | |
| CI: true | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
| - uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: pnpm | |
| node-version-file: package.json | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # Ensure npm 11.5.1 or later is installed | |
| - name: Install latest npm | |
| run: npm install -g npm@latest | |
| - name: Create Release Pull Request or Publish to npm | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm run version | |
| publish: pnpm run release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
| snapshot: | |
| name: Publish snapshot version | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| env: | |
| CI: true | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| cache: pnpm | |
| node-version-file: package.json | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # Ensure npm 11.5.1 or later is installed | |
| - name: Install latest npm | |
| run: npm install -g npm@latest | |
| - name: Publish | |
| uses: seek-oss/changesets-snapshot@v0 | |
| with: | |
| pre-publish: pnpm build | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |