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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
version: 10

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release:
Expand All @@ -29,6 +30,9 @@ jobs:
needs: release
if: ${{ needs.release.outputs.releases_created }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -41,9 +45,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
node-version: "24"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -52,8 +56,6 @@ jobs:
run: pnpm -r build

- name: Publish changed packages to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
set -euo pipefail
echo "Finding unpublished workspace packages..."
Expand Down Expand Up @@ -83,4 +85,3 @@ jobs:
# Publish only the unpublished ones in topo order
echo "Publishing: $filters"
pnpm -r $filters publish --access public --no-git-checks

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ See `protocol.md` for the full description and error codes.

Node 18+ is required for local development.

## Publishing & Releases

- Releases are automated with the `release-please` workflow. Merge the release PR generated by the bot to tag new versions.
- The publish job uses npm's [trusted publisher](https://docs.npmjs.com/trusted-publishers) integration. The GitHub Actions workflow requests an OIDC token, so no long-lived `NPM_TOKEN` secret is required.

## Licensing

- `loro-protocol`: MIT
Expand Down