Skip to content

Commit

Permalink
feat: add release-it support
Browse files Browse the repository at this point in the history
  • Loading branch information
pyadav committed Oct 4, 2023
1 parent 780775c commit 1e0c68f
Show file tree
Hide file tree
Showing 7 changed files with 1,071 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: npm run ci:build

- name: Run Semantic Release 🚀
run: npm run release
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions sdks/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "turbo run dev",
"lint": "turbo run lint",
"clean": "turbo run clean",
"publish": "turbo run publish",
"release": "turbo run release",
"changeset": "changeset",
"prettier-check": "prettier --check \"**/*.{js,ts,tsx,md,mdx}\"",
Expand Down
8 changes: 8 additions & 0 deletions sdks/js/packages/core/.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
}
}
9 changes: 0 additions & 9 deletions sdks/js/packages/core/.releaserc

This file was deleted.

7 changes: 5 additions & 2 deletions sdks/js/packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@raystack/frontier",
"version": "0.0.12",
"version": "0.7.7",
"description": "A js library for frontier",
"sideEffects": false,
"main": "./dist/index.js",
Expand All @@ -15,8 +15,10 @@
"build": "tsup",
"dev": "tsup --watch src",
"size": "size-limit",
"publish": "npm publish",
"lint": "eslint \"./**/*.ts*\"",
"release": "npm publish",
"release:dry": "release-it --dry-run --no-npm",
"release": "release-it",
"test": "echo \"Error: no test specified\" && exit 0",
"gen:client": "npx swagger-typescript-api -p ../../../../proto/apidocs.swagger.yaml -o client --modular"
},
Expand Down Expand Up @@ -62,6 +64,7 @@
"eslint-config-frontier": "workspace:^",
"np": "^7.7.0",
"prettier": "^2.8.8",
"release-it": "^16.2.1",
"size-limit": "^8.2.6",
"swagger-typescript-api": "^13.0.3",
"tsup": "^6.7.0",
Expand Down
Loading

0 comments on commit 1e0c68f

Please sign in to comment.