Skip to content

Commit a69cfef

Browse files
committed
ci: add release
1 parent 0217252 commit a69cfef

File tree

4 files changed

+421
-868
lines changed

4 files changed

+421
-868
lines changed

.github/renovate.json5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:base',
5+
'schedule:weekly',
6+
'group:allNonMajor',
7+
':semanticCommitTypeAll(chore)',
8+
],
9+
labels: ['dependencies'],
10+
pin: false,
11+
rangeStrategy: 'bump',
12+
node: false,
13+
packageRules: [
14+
{
15+
depTypeList: ['peerDependencies'],
16+
enabled: false,
17+
},
18+
],
19+
}

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
19+
- name: Set node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: lts/*
23+
cache: pnpm
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- run: npx changelogithub
27+
continue-on-error: true
28+
env:
29+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30+
31+
- name: Install Dependencies
32+
run: pnpm i
33+
34+
- name: Publish to NPM
35+
run: pnpm -r publish --access public --no-git-checks
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dev": "vite",
3333
"build": "vite build",
3434
"build-types": "vue-tsc -p tsconfig.build.json && api-extractor run -c api-extractor.json && node scripts/cleanup.js",
35-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
35+
"release": "bumpp -r",
3636
"prepublishOnly": "npm run build && npm run build-types"
3737
},
3838
"repository": {
@@ -55,8 +55,8 @@
5555
"@volar/monaco": "1.7.8",
5656
"@volar/typescript": "1.7.8",
5757
"@vue/language-service": "1.8.1",
58+
"bumpp": "^9.1.1",
5859
"codemirror": "^5.62.3",
59-
"conventional-changelog-cli": "^3.0.0",
6060
"fflate": "^0.7.3",
6161
"hash-sum": "^2.0.0",
6262
"monaco-editor-core": "^0.38.0",

0 commit comments

Comments
 (0)