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
5 changes: 5 additions & 0 deletions .changeset/cold-forks-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@powersync/sql-js": patch
---

Use trusted publishing to publish this package.
5 changes: 5 additions & 0 deletions .changeset/grumpy-shrimps-wear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@powersync/sql-js": patch
---

Update PowerSync core extension to version 0.4.8.
17 changes: 8 additions & 9 deletions .github/workflows/build-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,26 @@ jobs:
name: Build Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/dev-packages.yaml

This file was deleted.

37 changes: 26 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,36 @@ on:
push:
branches:
- main
workflow_dispatch:
# Dev publishing

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- uses: pnpm/action-setup@v2
uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
# Pnpm 9.4 introduces this https://github.com/pnpm/pnpm/pull/7633
# which causes workspace:^1.2.0 to be converted to 1.2.0^1.2.0
version: 9.3
run_install: false

- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand All @@ -50,14 +54,25 @@ jobs:
version: 4.0.10
actions-cache-folder: "emsdk-cache"

- name: Build
run: pnpm build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
if: ${{ github.event_name == 'push' }}
with:
# Update the monorepo lockfile after versioning
version: pnpm changeset:version
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Dev publish
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
pnpm changeset version --no-git-tag --snapshot dev
pnpm changeset publish --tag dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -e

POWERSYNC_CORE_VERSION="0.4.6"
POWERSYNC_CORE_VERSION="0.4.8"
SQLITE_PATH="sql.js"

if [ -d "$SQLITE_PATH" ]; then
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
},
"devDependencies": {
"@changesets/cli": "^2.29.5"
}
},
"packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8"
}
Loading