Skip to content

Commit bfd8e01

Browse files
committed
ci: auto version changes to library in CI
1 parent 62e647e commit bfd8e01

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.changeset/config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": [
4+
"@changesets/cli/changelog",
5+
{
6+
"repo": "MengLinMaker/eslint-plugin-runtime-compat"
7+
}
8+
],
49
"commit": false,
510
"fixed": [],
611
"linked": [],

.github/workflows/CD.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
99

1010
permissions:
1111
contents: write
12+
issues: write
1213
pull-requests: write
1314

1415
jobs:
15-
publish:
16+
release:
1617
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1718
runs-on: ubuntu-latest
1819
steps:
@@ -25,12 +26,17 @@ jobs:
2526
node-version: latest
2627
cache: 'pnpm'
2728

28-
- run: pnpm install
29-
- name: Create Release Pull Request or Publish
29+
- name: Build library
30+
run: pnpm install && pnpm build
31+
32+
- name: Create Release Pull Request or Publish to npm
3033
id: changesets
3134
uses: changesets/action@v1
3235
with:
33-
publish: pnpm build && pnpm release
36+
publish: pnpm release
37+
version: npm run version
38+
commit: "chore: new release"
39+
title: "chore: new release candidate"
3440
env:
3541
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3642
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @menglinmaker/eslint-plugin-runtime-compat
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- Upgrade dependencies and add commit message linting

0 commit comments

Comments
 (0)