Snapshot #20
Workflow file for this run
This file contains 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: Snapshot | |
on: workflow_dispatch | |
permissions: {} | |
jobs: | |
publish: | |
name: Publish Snapshot | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Set up pnpm | |
run: corepack enable pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Setup jq | |
uses: dcarbone/[email protected] | |
- name: Publish to npm | |
uses: seek-oss/changesets-snapshot@v0 | |
with: | |
pre-version: pnpm changeset version && jq -r '.version' package.json > .changeset-version && git checkout . | |
pre-publish: jq -r '.version = "'$(cat .changeset-version)'" + (.version | sub("0.0.0"; ""))' package.json > package.json.tmp && mv package.json.tmp package.json && rm .changeset-version && pnpm run build | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }} |