Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 41 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
push:
branches:
- main
workflow_dispatch:

permissions: {}

jobs:
release:
name: Publish
name: Publish latest
if: github.event_name == 'push'
permissions:
id-token: write
runs-on: ubuntu-latest
Expand All @@ -32,11 +34,48 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- 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 }}
NPM_TOKEN: ${{ secrets.NPM_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@v5
with:
fetch-depth: 0
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22.x
package-manager-cache: false

- name: Set up pnpm
run: corepack enable pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- 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 }}
38 changes: 0 additions & 38 deletions .github/workflows/snapshot.yml

This file was deleted.