Skip to content

Commit

Permalink
Add Changesets (#7)
Browse files Browse the repository at this point in the history
* Add Changesets

* update lockfile and add bump command !

* changeset setup
  • Loading branch information
aaronmgdr authored Sep 29, 2023
1 parent 999e228 commit 3901315
Show file tree
Hide file tree
Showing 10 changed files with 649 additions and 29 deletions.
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/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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@v3

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions docs/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@celo/base": "^3.0.1",
"@celo/identity": "^3.0.1",
"@celo/base": "^5.0.4",
"@celo/identity": "^5.0.4",
"blind-threshold-bls": "https://github.com/celo-org/blind-threshold-bls-wasm#3d1013a",
"ethers": "^5.7.2",
"react-native-blind-threshold-bls": "^1.0.1",
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"clean": "yarn run lerna run clean",
"check-licenses": "yarn licenses list --prod | grep '\\(─ GPL\\|─ (GPL-[1-9]\\.[0-9]\\+ OR GPL-[1-9]\\.[0-9]\\+)\\)' && echo 'Found GPL license(s). Use 'yarn licenses list --prod' to look up the offending package' || echo 'No GPL licenses found'",
"test:watch": "node node_modules/jest/bin/jest.js --watch",
"cs": "yarn changeset add",
"bump": "yarn changeset version",
"postinstall": "yarn run lerna run postinstall"
},
"husky": {
Expand All @@ -30,12 +32,14 @@
"packages": [
"packages/*",
"packages/phone-number-privacy/*",
"packages/sdk/*"
"packages/sdk/*",
"docs/examples/*"
]
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@changesets/cli": "^2.26.2",
"@types/jest": "^29.1.1",
"@types/node": "18.7.16",
"@types/prompt": "1.1.1",
Expand Down Expand Up @@ -70,4 +74,4 @@
"@types/bn.js": "4.11.6",
"bignumber.js": "9.0.0"
}
}
}
1 change: 1 addition & 0 deletions packages/phone-number-privacy/combiner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@celo/phone-number-privacy-combiner",
"version": "3.0.1",
"private": "true",
"description": "Orchestrates and combines threshold signatures for use in ODIS",
"author": "Celo",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions packages/phone-number-privacy/signer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@celo/phone-number-privacy-signer",
"version": "3.0.2",
"private": "true",
"description": "Signing participator of ODIS",
"author": "Celo",
"license": "Apache-2.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/sdk/encrypted-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/connect": "5.0.4",
"@celo/base": "5.0.4",
"@celo/identity": "5.0.4",
"@celo/wallet-local": "5.0.4",
"@celo/connect": "^5.0.4",
"@celo/base": "^5.0.4",
"@celo/identity": "^5.0.4",
"@celo/wallet-local": "^5.0.4",
"@celo/phone-number-privacy-common": "^3.0.3",
"@celo/poprf": "^0.1.9",
"@celo/utils": "5.0.4",
"@celo/utils": "^5.0.4",
"@types/debug": "^4.1.5",
"debug": "^4.1.1",
"fp-ts": "2.1.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@celo/base": "5.0.4",
"@celo/utils": "5.0.4",
"@celo/contractkit": "5.0.4",
"@celo/base": "^5.0.4",
"@celo/utils": "^5.0.4",
"@celo/contractkit": "^5.0.4",
"@celo/phone-number-privacy-common": "^3.0.3",
"@types/debug": "^4.1.5",
"bignumber.js": "^9.0.0",
Expand All @@ -40,7 +40,7 @@
"devDependencies": {
"@celo/celo-devchain": "6.0.0",
"@celo/dev-utils": "0.0.1-beta.1",
"@celo/wallet-local": "5.0.4",
"@celo/wallet-local": "^5.0.4",
"@types/elliptic": "^6.4.12",
"fetch-mock": "9.10.4",
"ganache": "npm:@celo/[email protected]",
Expand Down
Loading

0 comments on commit 3901315

Please sign in to comment.