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
14 changes: 5 additions & 9 deletions .github/workflows/build-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ jobs:
name: Build Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
persist-credentials: false

- name: Enable Corepack
run: corepack enable
- name: Setup NodeJS
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 18
node-version: 24
cache: 'yarn'

- name: Setup Yarn
run: |
npm install -g yarn
echo "Yarn version: $(yarn -v)"

# Build is triggered in prepare script
- name: Install Dependencies
run: yarn install --frozen-lockfile
35 changes: 0 additions & 35 deletions .github/workflows/dev-packages.yaml

This file was deleted.

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

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

permissions:
id-token: write # Required for OIDC
contents: write # Required for changesets pushing
pull-requests: write # Required for changesets to create PRs

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js 18
uses: actions/setup-node@v4
uses: actions/checkout@v5
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js 24
uses: actions/setup-node@v6
with:
node-version: 18
node-version: 24
cache: yarn
- name: Update npm
run: |
npm install -g npm@latest
npm --version

# This also builds the package as part of the post install
- name: Install Dependencies
run: yarn
run: yarn install --frozen-lockfile

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

- name: Dev publish
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
node ./scripts/dev-package-pre-version.js
yarn changeset version --no-git-tag --snapshot dev
yarn changeset publish --tag dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 7 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Enable Corepack
run: corepack enable

- name: Enable KVM group perms
run: |
Expand All @@ -33,9 +35,9 @@ jobs:
key: avd-31

- name: Setup NodeJS
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 18
node-version: 24
cache: 'yarn'

- name: Set up JDK 17
Expand All @@ -45,11 +47,6 @@ jobs:
distribution: 'adopt'
cache: 'gradle'

- name: Setup Yarn
run: |
npm install -g yarn
echo "Yarn version: $(yarn -v)"

- name: Install Dependencies
run: yarn install --frozen-lockfile

Expand Down Expand Up @@ -93,6 +90,8 @@ jobs:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Enable Corepack
run: corepack enable

- uses: irgaly/xcode-cache@v1
if: false # Currently broken, see e.g. https://github.com/powersync-ja/react-native-quick-sqlite/actions/runs/18458692696/job/52584961537
Expand All @@ -111,14 +110,9 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v5
with:
node-version: 18
node-version: 24
cache: 'yarn'

- name: Setup Yarn
run: |
npm install -g yarn
echo "Yarn version: $(yarn -v)"

- name: Install Dependencies
run: yarn install --frozen-lockfile

Expand Down
Loading