Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup changesets for the initial release #309

Closed
wants to merge 6 commits into from
Closed
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": []
}
15 changes: 7 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: CI
on: [ push, pull_request ]

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

jobs:
build_project:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [ '18.x' ]
os: [ ubuntu-latest ]

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.1

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- run: pnpm install
- run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build
Expand All @@ -33,7 +32,7 @@ jobs:
- name: Test
run: pnpm test

- name: Check examples
- name: Check examples & demos
run: pnpm check-examples

- name: Upload coverage to Codecov
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish
on:
push:
branches:
- "main"

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

jobs:
publish:
name: Publish NPM package using changesets
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- run: pnpm install --frozen-lockfile

- name: Create release pull request or publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run build
10 changes: 7 additions & 3 deletions demos/taco-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "taco-demo",
"version": "0.1.0",
"version": "0.0.0",
"description": "A usage example for @nucypher/taco",
"private": true,
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
"scripts": {
"start": "webpack serve --mode development",
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
"prebuild": "pnpm run check && pnpm run clean",
"clean": "rimraf build",
"build": "webpack --mode production --progress",
"check": "tsc"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
Expand Down Expand Up @@ -34,5 +37,6 @@
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
}
},
"packageManager": "^pnpm@8.7.1"
}
10 changes: 7 additions & 3 deletions demos/taco-nft-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "taco-nft-demo",
"version": "0.1.0",
"version": "0.0.0",
"description": "A usage example for @nucypher/taco",
"private": true,
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
"scripts": {
"start": "webpack serve --mode development",
"build": "tsc --noEmit && rimraf build && webpack --mode production --progress"
"prebuild": "pnpm run check && pnpm run clean",
"clean": "rimraf build",
"build": "webpack --mode production --progress",
"check": "tsc"
},
"dependencies": {
"@nucypher/taco": "workspace:*",
Expand Down Expand Up @@ -34,5 +37,6 @@
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1"
}
},
"packageManager": "^pnpm@8.7.1"
}
4 changes: 3 additions & 1 deletion examples/pre/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "pre-nextjs",
"private": true,
"scripts": {
"build": "next build",
Expand All @@ -24,5 +25,6 @@
"peerDependencies": {
"ethers": "^5.7.2",
"typescript": "5.2.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
6 changes: 4 additions & 2 deletions examples/pre/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": "0.1.0",
"name": "pre-nodejs",
"version": "0.0.0",
"private": true,
"license": "GPL-3.0-only",
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
Expand All @@ -14,5 +15,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
5 changes: 3 additions & 2 deletions examples/pre/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react",
"version": "0.1.0",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "react-scripts build",
Expand Down Expand Up @@ -35,5 +35,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
6 changes: 4 additions & 2 deletions examples/pre/webpack-5/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": "0.1.0",
"name": "pre-webpack-5",
"version": "0.0.0",
"private": true,
"license": "GPL-3.0-only",
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
Expand All @@ -22,5 +23,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
4 changes: 3 additions & 1 deletion examples/taco/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "taco-nextjs",
"private": true,
"scripts": {
"build": "next build",
Expand All @@ -24,5 +25,6 @@
"peerDependencies": {
"ethers": "^5.7.2",
"typescript": "5.2.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
6 changes: 4 additions & 2 deletions examples/taco/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": "0.1.0",
"name": "taco-nodejs",
"version": "0.0.0",
"private": true,
"license": "GPL-3.0-only",
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
Expand All @@ -14,5 +15,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
5 changes: 3 additions & 2 deletions examples/taco/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react",
"version": "0.1.0",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "react-scripts build",
Expand Down Expand Up @@ -35,5 +35,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
6 changes: 4 additions & 2 deletions examples/taco/webpack-5/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": "0.1.0",
"name": "taco-webpack-5",
"version": "0.0.0",
"private": true,
"license": "GPL-3.0-only",
"author": "Piotr Rosłaniec <p.roslaniec@gmail.com>",
Expand All @@ -22,5 +23,6 @@
},
"peerDependencies": {
"ethers": "^5.7.2"
}
},
"packageManager": "^pnpm@8.7.1"
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"exports:lint": "pnpm run --parallel --aggregate-output --reporter append-only --filter './packages/**' exports:lint",
"fix": "pnpm format:fix && pnpm lint:fix && pnpm packages:sort",
"ci:lint": "run-p lint type-check package:check packages:lint exports:lint",
"check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' check"
"check-examples": "pnpm run --parallel --aggregate-output --reporter append-only --filter './examples/**' --filter './demos/**' check"
},
"dependencies": {
"@changesets/cli": "^2.26.2",
"@nucypher/nucypher-core": "0.13.0-alpha.1"
},
"devDependencies": {
Expand Down Expand Up @@ -56,6 +57,7 @@
"typescript": "^5.2.2",
"vitest": "^0.34.4"
},
"packageManager": "^pnpm@8.7.1",
"bundlemon": {
"baseDir": ".",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion packages/pre/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/pre",
"version": "0.1.0",
"version": "0.0.0",
"keywords": [
"pre",
"threshold",
Expand Down Expand Up @@ -47,6 +47,7 @@
"peerDependencies": {
"ethers": "^5.7.2"
},
"packageManager": "^pnpm@8.7.1",
"engines": {
"node": ">=18",
"pnpm": ">=8.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/shared",
"version": "0.1.0",
"version": "0.0.0",
"keywords": [
"pre",
"taco",
Expand Down Expand Up @@ -56,6 +56,7 @@
"standard-version": "^9.0.0",
"typechain": "^8.3.1"
},
"packageManager": "^pnpm@8.7.1",
"engines": {
"node": ">=18",
"pnpm": ">=8.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/taco/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/taco",
"version": "0.1.0",
"version": "0.0.0",
"keywords": [
"taco",
"threshold",
Expand Down Expand Up @@ -51,6 +51,7 @@
"peerDependencies": {
"ethers": "^5.7.2"
},
"packageManager": "^pnpm@8.7.1",
"engines": {
"node": ">=18",
"pnpm": ">=8.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/test-utils",
"version": "0.1.0",
"version": "0.0.0",
"private": true,
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,6 +35,7 @@
"ethers": "^5.7.2",
"vitest": "^0.34.4"
},
"packageManager": "^pnpm@8.7.1",
"engines": {
"node": ">=18",
"pnpm": ">=8.0.0"
Expand Down
Loading
Loading