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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/dry-foxes-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@journeyapps/react-native-quick-sqlite': patch
---

Bump version to 0.0.1 for consistency
31 changes: 31 additions & 0 deletions .github/workflows/build-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Ensures packages build correctly
name: Build Packages

on:
push:

jobs:
build:
name: Build Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 18
cache: "yarn"

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

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

- name: Build
run: yarn build
36 changes: 36 additions & 0 deletions .github/workflows/dev-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Action to publish packages under the `next` tag for testing
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP`
name: Packages Deploy

on: workflow_dispatch

jobs:
publish:
name: Publish Dev Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 18

- name: Setup Yarn
run: |
npm install -g yarn
echo "Yarn version: $(yarn -v)"
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc

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

- name: Build
run: yarn build:packages

- name: Development Version
run: |
yarn changeset version --no-git-tag --snapshot dev
yarn changeset publish --tag dev
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

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

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@v3
with:
node-version: 18

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
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 }}
17 changes: 0 additions & 17 deletions bump-version.sh

This file was deleted.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"example": "yarn --cwd example",
"pods": "cd example/ios && bundle exec pod install",
"bootstrap": "yarn example && yarn && yarn pods",
"bump": "./bump-version.sh"
"release": "yarn build && yarn changeset publish"
},
"keywords": [
"react-native",
Expand All @@ -51,9 +51,10 @@
},
"homepage": "https://github.com/margelo/react-native-quick-sqlite#readme",
"devDependencies": {
"react": "18.2.0",
"react-native": "0.71.0",
"@changesets/cli": "^2.26.2",
"react-native-builder-bob": "^0.18.2",
"react-native": "0.71.0",
"react": "18.2.0",
"typescript": "^4.8.4"
},
"peerDependencies": {
Expand All @@ -80,5 +81,6 @@
}
]
]
}
},
"dependencies": {}
}
Loading