Skip to content

Commit

Permalink
New
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalnagar committed Feb 10, 2024
1 parent a9d76bc commit b90ceb7
Show file tree
Hide file tree
Showing 10 changed files with 2,655 additions and 75 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,12 @@ jobs:
run: yarn install --frozen-lockfile
- name: Print Environment Info
run: yarn nx report
- name: Release (dry-run)
run: npx nx release --dry-run
# - name: Derive appropriate SHAs for base and head for `nx affected` commands
# uses: nrwl/nx-set-shas@v4
# - run: |
# echo "BASE: ${{ env.NX_BASE }}"
# echo "HEAD: ${{ env.NX_HEAD }}"
# - name: Build affected packages
# run: yarn nx affected -t build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
# - name: Version affected packages
# run: yarn nx affected -t version --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
# - name: Changelog affected packages
# run: yarn nx affected -t changelog --from=${{ env.NX_BASE }} --to=${{ env.NX_HEAD }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- run: |
echo "BASE: ${{ env.NX_BASE }}"
echo "HEAD: ${{ env.NX_HEAD }}"
- name: Build affected packages
run: yarn nx affected -t build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
- name: Release affected packages (dry-run)
run: yarn nx affected -t release:dry-run --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
51 changes: 51 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "chore", "release": "patch" },
{ "type": "refactor", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Chores"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# Changelog"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "dist"],
"message": "chore(release): ${nextRelease.version}\n\n[skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
17 changes: 0 additions & 17 deletions CHANGELOG.md

This file was deleted.

6 changes: 0 additions & 6 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,5 @@
}
]
}
},
"release": {
"projects": ["packages/**"],
"version": {
"conventionalCommits": true
}
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
"private": true,
"devDependencies": {
"@nx/js": "^18.0.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"nx": "^18.0.4",
"prettier": "^3.0.0",
"semantic-release": "^23.0.2",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
},
"scripts": {
"build": "rimraf dist && tsc",
"version": "yarn nx release version",
"changelog": "yarn nx release changelog"
"release:dry-run": "yarn semantic-release --dry-run",
"release": "yarn semantic-release"
},
"peerDependencies": {
"eslint": ">=7.x",
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"scripts": {
"build": "rimraf dist && tsc",
"version": "yarn nx release version",
"changelog": "yarn nx release changelog",
"release:dry-run": "yarn semantic-release --dry-run",
"release": "yarn semantic-release",
"lint": "eslint src/ --ext .ts,.tsx --max-warnings 0",
"lint:fix": "eslint --fix src/ --ext .ts,.tsx --max-warnings 0",
"test:watch": "jest --watch"
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"scripts": {
"build": "rimraf dist && tsc",
"version": "yarn nx release version",
"changelog": "yarn nx release changelog",
"release:dry-run": "yarn semantic-release --dry-run",
"release": "yarn semantic-release",
"lint": "eslint src/ --ext .ts,.tsx --max-warnings 0",
"test:watch": "jest --watch"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-library.json"
],
"scripts": {
"version": "yarn nx release version",
"changelog": "yarn nx release changelog"
"release:dry-run": "yarn semantic-release --dry-run",
"release": "yarn semantic-release"
}
}
Loading

0 comments on commit b90ceb7

Please sign in to comment.