Skip to content

Commit d684b11

Browse files
committed
build: 👷 update build system to use conventional commits
use conventional commits and logic
1 parent 6f4a220 commit d684b11

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
- name: Release update
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
run: npx -p github:brianrodri/semantic-release-obsidian-plugin semantic-release
40+
run: npx -p semantic-release-obsidian-plugin@1.1.0 -p conventional-changelog-conventionalcommits semantic-release

‎.releaserc.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
# dry-run (default): npx -p github:brianrodri/semantic-release-obsidian-plugin semantic-release
88
# for real: npx -p github:brianrodri/semantic-release-obsidian-plugin semantic-release --dry-run false
99
plugins:
10-
- '@semantic-release/commit-analyzer'
11-
- '@semantic-release/release-notes-generator'
10+
- - '@semantic-release/commit-analyzer'
11+
- preset: conventionalcommits
12+
- - '@semantic-release/release-notes-generator'
13+
- preset: conventionalcommits
1214
- semantic-release-obsidian-plugin
1315
- - '@semantic-release/github'
1416
- assets:

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"dev": "rollup --config rollup.config.mjs -w",
88
"build": "rollup --config rollup.config.mjs --environment BUILD:production",
99
"deploy:local": "npm run build && cross-env PACKAGE_NAME=$npm_package_name node deploy-local.mjs",
10-
"release:local": "npm ci && npm run build && npx -p semantic-release-obsidian-plugin@1.1.0 semantic-release --dry-run false",
11-
"release:dry-run": "npm ci && npm run build && npx -p semantic-release-obsidian-plugin@1.1.0 semantic-release --dry-run"
10+
"release:local": "npm ci && npm run build && npx -p semantic-release-obsidian-plugin@1.1.0 -p conventional-changelog-conventionalcommits semantic-release --dry-run false",
11+
"release:dry-run": "npm ci && npm run build && npx -p semantic-release-obsidian-plugin@1.1.0 -p conventional-changelog-conventionalcommits semantic-release --dry-run"
1212
},
1313
"keywords": [],
1414
"author": "",

0 commit comments

Comments
 (0)