Skip to content

Commit

Permalink
chore: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Feb 2, 2024
1 parent 4eaf58d commit a068cb9
Show file tree
Hide file tree
Showing 6 changed files with 1,314 additions and 161 deletions.
6 changes: 0 additions & 6 deletions .auto-changelog.json

This file was deleted.

19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@ name: Release Drafter
on:
push:
branches:
- release
- main
- alpha

jobs:
update_release_draft:
release:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
config-name: release-drafter.yml
disable-autolabeler: false
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: install
run: pnpm install
- name: release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
44 changes: 0 additions & 44 deletions CHANGELOG.md

This file was deleted.

52 changes: 0 additions & 52 deletions auto-changelog-template.hbs

This file was deleted.

48 changes: 45 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,47 @@
"name": "keyshade-xyz",
"version": "0.1.0-alpha",
"license": "MPL-2.0",
"release": {
"branches": [
"main",
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "build",
"release": "minor"
}
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
},
"scripts": {
"dev": "nx run-many -t serve -p api web workspace --parallel --maxParallel 3",
"dev:api": "nx run api:serve",
Expand Down Expand Up @@ -36,8 +77,7 @@
"db:validate": "nx run api:prisma:validate",
"db:format": "nx run api:prisma:format",
"db:reset": "nx run api:prisma:reset",
"prepare": "husky install",
"changelog": "auto-changelog -c .auto-changelog.json --template auto-changelog-template.hbs"
"prepare": "husky install"
},
"private": false,
"devDependencies": {
Expand Down Expand Up @@ -99,9 +139,10 @@
"@nestjs/schedule": "^4.0.0",
"@nestjs/swagger": "^7.1.17",
"@prisma/client": "^5.7.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@supabase/supabase-js": "^2.39.2",
"@types/jsonwebtoken": "^9.0.5",
"auto-changelog": "^2.4.0",
"axios": "^1.6.5",
"chalk": "4.1.2",
"class-transformer": "^0.5.1",
Expand All @@ -120,6 +161,7 @@
"react-dom": "18.2.0",
"reflect-metadata": "^0.1.14",
"rxjs": "^7.8.1",
"semantic-release": "^23.0.0",
"tslib": "^2.6.2"
}
}
Loading

0 comments on commit a068cb9

Please sign in to comment.