Skip to content

Commit 9f826a5

Browse files
update from main
2 parents 6fc07f2 + 6025fd0 commit 9f826a5

11 files changed

+1433
-34
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/build-packages.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Ensures packages build correctly
2+
name: Build Packages
3+
4+
on:
5+
push:
6+
7+
jobs:
8+
build:
9+
name: Build Packages
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
15+
16+
- name: Setup NodeJS
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 18
20+
cache: "yarn"
21+
22+
- name: Setup Yarn
23+
run: |
24+
npm install -g yarn
25+
echo "Yarn version: $(yarn -v)"
26+
27+
- name: Install Dependencies
28+
run: yarn install --frozen-lockfile
29+
30+
- name: Build
31+
run: yarn build

.github/workflows/dev-packages.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Action to publish packages under the `next` tag for testing
2+
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`
3+
name: Packages Deploy
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+
16+
- name: Setup NodeJS
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 18
20+
21+
- name: Setup Yarn
22+
run: |
23+
npm install -g yarn
24+
echo "Yarn version: $(yarn -v)"
25+
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
26+
27+
- name: Install Dependencies
28+
run: yarn install --frozen-lockfile
29+
30+
- name: Build
31+
run: yarn build
32+
33+
- name: Development Version
34+
run: |
35+
yarn changeset version --no-git-tag --snapshot dev
36+
yarn changeset publish --tag dev

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js 18
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Create Release Pull Request or Publish to npm
27+
id: changesets
28+
uses: changesets/action@v1
29+
with:
30+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
31+
publish: yarn release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.mtslconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ignore_dirs":[".git","node_modules"]}

.yarnrc

-3
This file was deleted.

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @journeyapps/react-native-quick-sqlite
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- 90affb4: Bump version to 0.0.1 for consistency

bump-version.sh

-17
This file was deleted.

package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"registry": "https://registry.npmjs.org/",
55
"access": "public"
66
},
7-
"version": "0.0.1-alpha.0",
7+
"version": "0.0.1",
88
"description": "Fast SQLite for react-native",
99
"main": "lib/commonjs/index",
1010
"module": "lib/module/index",
@@ -36,7 +36,7 @@
3636
"example": "yarn --cwd example",
3737
"pods": "cd example/ios && bundle exec pod install",
3838
"bootstrap": "yarn example && yarn && yarn pods",
39-
"bump": "./bump-version.sh"
39+
"release": "yarn build && yarn changeset publish"
4040
},
4141
"keywords": [
4242
"react-native",
@@ -54,7 +54,10 @@
5454
"@types/uuid": "3.4.0",
5555
"react": "18.2.0",
5656
"react-native": "0.71.0",
57+
"@changesets/cli": "^2.26.2",
5758
"react-native-builder-bob": "^0.18.2",
59+
"react-native": "0.71.0",
60+
"react": "18.2.0",
5861
"typescript": "^4.8.4"
5962
},
6063
"peerDependencies": {
@@ -82,7 +85,11 @@
8285
]
8386
]
8487
},
88+
<<<<<<< HEAD
8589
"dependencies": {
8690
"uuid": "3.4.0"
8791
}
92+
=======
93+
"dependencies": {}
94+
>>>>>>> main
8895
}

0 commit comments

Comments
 (0)