deps: lock file maintenance (#204) #184
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: | |
| - main | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| release: | |
| name: Publish latest | |
| if: github.event_name == 'push' | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install latest npm | |
| run: npm install -g npm@latest | |
| - name: Publish to npm | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm run release | |
| version: pnpm run stage | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
| snapshot: | |
| name: Publish Snapshot | |
| if: github.event_name == 'workflow_dispatch' | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install latest npm | |
| run: npm install -g npm@latest | |
| - name: Publish to npm | |
| uses: seek-oss/changesets-snapshot@v0 | |
| with: | |
| pre-publish: pnpm run build | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} |