Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
build: switch from changeset to release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
karimdaghari authored Oct 31, 2023
1 parent a97ca2f commit 997d133
Show file tree
Hide file tree
Showing 14 changed files with 1,428 additions and 643 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/big-squids-hug.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-crews-jump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/five-masks-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-hotels-train.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/strange-pots-lie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-rules-approve.md

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js 20.x
uses: actions/setup-node@v4
Expand Down Expand Up @@ -52,4 +54,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm run release
run: pnpm release
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A set of tools commonly used at marzee",
"scripts": {
"build": "pnpm --filter \"./packages/*\" build",
"release": "pnpm run build && changeset publish",
"release": "pnpm run build && pnpm --filter \"./packages/*\" release --ci",
"commitlint": "commitlint --edit"
},
"author": "Karim Daghari",
Expand All @@ -15,9 +15,12 @@
"devDependencies": {
"@commitlint/cli": "^18.1.0",
"@commitlint/config-conventional": "^18.1.0",
"husky": "^8.0.3"
"husky": "^8.0.3",
"release-it": "^16.2.1"
},
"dependencies": {
"@changesets/cli": "^2.26.2"
"release-it": {
"git": false,
"npm": false,
"github": false
}
}
9 changes: 8 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
}
]
},
"scripts": {},
"scripts": {
"release": "release-it"
},
"author": "Karim Daghari",
"license": "ISC",
"devDependencies": {
Expand All @@ -30,5 +32,10 @@
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"eslint-config-next": "^13"
},
"release-it": {
"github": true,
"git": true,
"npm": true
}
}
8 changes: 7 additions & 1 deletion packages/react-auth-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"scripts": {
"build": "npx tsup src/index.ts --format esm,cjs --minify --dts --treeshake --clean",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"release": "release-it"
},
"author": "Karim Daghari",
"license": "ISC",
Expand All @@ -54,5 +55,10 @@
"next": {
"optional": true
}
},
"release-it": {
"github": true,
"git": true,
"npm": true
}
}
11 changes: 9 additions & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@
}
]
},
"scripts": {},
"scripts": {
"release": "release-it"
},
"author": "Karim Daghari",
"license": "ISC",
"devDependencies": {}
"devDependencies": {},
"release-it": {
"github": true,
"git": true,
"npm": true
}
}
Loading

0 comments on commit 997d133

Please sign in to comment.