Skip to content

Commit de32978

Browse files
committed
Added dev release mechanism.
1 parent d3060d4 commit de32978

File tree

3 files changed

+66
-3
lines changed

3 files changed

+66
-3
lines changed

.changeset/angry-days-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@powersync/sql-js": patch
3+
---
4+
5+
Initial release of sql.js fork with PowerSync.

.github/workflows/dev-packages.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Action to publish packages under the `next` tag for testing
2+
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`
3+
name: Create Dev Release
4+
5+
on: workflow_dispatch
6+
7+
jobs:
8+
publish:
9+
name: Publish Dev Packages
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
15+
- name: Setup NodeJS
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version-file: ".nvmrc"
19+
- uses: pnpm/action-setup@v2
20+
name: Install pnpm
21+
with:
22+
version: 9
23+
run_install: false
24+
- name: Add NPM auth
25+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
26+
- name: Get pnpm store directory
27+
shell: bash
28+
run: |
29+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30+
- uses: actions/cache@v3
31+
name: Setup pnpm cache
32+
with:
33+
path: ${{ env.STORE_PATH }}
34+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+
restore-keys: |
36+
${{ runner.os }}-pnpm-store-
37+
- name: Install dependencies
38+
run: pnpm install
39+
40+
- name: Install sha3sum
41+
run: |
42+
sudo apt-get update
43+
sudo apt-get install -y libdigest-sha3-perl
44+
45+
- name: Setup Emscripten
46+
uses: mymindstorm/setup-emsdk@v14
47+
with:
48+
version: "latest"
49+
actions-cache-folder: "emsdk-cache"
50+
51+
- name: Build
52+
run: pnpm build
53+
54+
- name: Publish
55+
run: |
56+
pnpm changeset version --no-git-tag --snapshot dev
57+
pnpm changeset publish --tag dev

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@powersync/sqljs",
2+
"name": "@powersync/sql-js",
33
"private": "true",
44
"version": "0.0.0",
55
"description": "SQL.js fork for for JourneyApps PowerSync",
@@ -8,21 +8,22 @@
88
"module": "dist/bundle.mjs",
99
"types": "lib/index.d.ts",
1010
"author": "JOURNEYAPPS",
11-
"license": "Apache-2.0",
11+
"license": "MIT",
1212
"files": [
1313
"lib",
1414
"dist"
1515
],
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/powersync-ja/powersync-js.git"
18+
"url": "git+https://github.com/powersync-ja/powersync-sql-js.git"
1919
},
2020
"bugs": {
2121
"url": "https://github.com/powersync-ja/powersync-js/issues"
2222
},
2323
"homepage": "https://docs.powersync.com",
2424
"scripts": {
2525
"build": "sh build.sh",
26+
"ci:publish": "pnpm publish -r",
2627
"clean": "rm -rf dist sql.js"
2728
},
2829
"devDependencies": {

0 commit comments

Comments
 (0)