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 #337

Merged
merged 8 commits into from
Oct 20, 2023
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": []
}
7 changes: 7 additions & 0 deletions .changeset/sixty-pans-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@nucypher/shared': minor
'@nucypher/taco': minor
'@nucypher/pre': minor
---

Initial package release
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ updates:
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
open-pull-requests-limit: 5
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
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@v4

- 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 Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion demos/taco-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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>",
Expand Down
2 changes: 1 addition & 1 deletion demos/taco-nft-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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>",
Expand Down
1 change: 1 addition & 0 deletions 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 Down
3 changes: 2 additions & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion 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
3 changes: 2 additions & 1 deletion 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 Down
1 change: 1 addition & 0 deletions 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 Down
3 changes: 2 additions & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion 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
3 changes: 2 additions & 1 deletion 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 Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"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
2 changes: 1 addition & 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
2 changes: 1 addition & 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
Loading
Loading