Skip to content
Merged
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
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:

docker:
name: Release on Docker Hub

permissions:
contents: read
needs:
- release

Expand Down Expand Up @@ -77,7 +78,9 @@ jobs:

npm:
name: Release on NPM

permissions:
contents: read
id-token: write # OIDC for releasing on npm
needs:
- release

Expand All @@ -99,12 +102,14 @@ jobs:
cd packages/sync-engine
pnpm version ${{ needs.release.outputs.new-release-version }} --no-git-tag-version

# Ensure npm 11.5.1 or later is installed for trusted publishing support
- name: Update npm
run: npm install -g npm@latest

- name: Publish sync-engine to npm
run: |
cd packages/sync-engine
pnpm install --frozen-lockfile
pnpm run build
pnpm pack
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}