Skip to content

Commit 50b5921

Browse files
committed
feat: add release-please action
for managing releases
1 parent e25320f commit 50b5921

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- run: bun install
2323
- run: bun run lint
2424
- run: bun run build
25+
- run: bun run pretest
2526

2627
# publish the extension to marketplaces
2728
publish:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
# this is a built-in strategy in release-please, see "Action Inputs"
19+
# for more options
20+
release-type: node

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"js-yaml": "^4.1.0",
137137
"lefthook": "^1.10.7",
138138
"ovsx": "^0.10.1",
139-
"standard-version": "^9.5.0",
140139
"@vscode/test-cli": "*",
141140
"@vscode/test-electron": "*",
142141
"vscode-tmgrammar-test": "*",
@@ -149,16 +148,13 @@
149148
"watch": "bun run build-base --sourcemap --watch",
150149
"postinstall": "lefthook install",
151150
"clean": "rm -rd dist",
152-
"prerelease": "bun install && bun run lint && bun run clean && bun run build",
153-
"release": "standard-version",
154-
"postrelease": "git push --follow-tags",
155151
"prepackage": "rm -f *.vsix",
156152
"package": "bun run build && bunx vsce package",
157153
"publish:ovsx": "bunx ovsx publish *.vsix --pat '$OVS_PAT'",
158154
"publish:vsce": "bunx vsce publish",
159155
"publish": "bun run package && bun run publish:vsce && bun run publish:ovsx",
160-
"test:grammar": "bun run build && vscode-tmgrammar-snap 'syntaxes/tests/*.nix'",
161-
"test": "bun run test:grammar && vscode-test",
156+
"pretest": "bun run build && vscode-tmgrammar-snap 'syntaxes/tests/*.nix'",
157+
"test": "vscode-test",
162158
"lint": "bun x biome check --write src"
163159
},
164160
"dependencies": {

0 commit comments

Comments
 (0)