Skip to content

Commit 8379800

Browse files
committed
update
1 parent 5d3a1b7 commit 8379800

File tree

9 files changed

+124
-111
lines changed

9 files changed

+124
-111
lines changed

.github/workflows/auto-fix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Auto Fix
2+
13
on:
24
push:
35
branches:

.github/workflows/auto-tag.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/bump-version-comment.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Bump Version on Comment
2+
13
on:
24
issue_comment:
35
types: [created]
@@ -36,8 +38,6 @@ jobs:
3638
- uses: actions/checkout@v4
3739
with:
3840
ref: ${{ steps.pr.outputs.branch }}
39-
fetch-depth: 0
40-
token: ${{ secrets.GITHUB_TOKEN }}
4141

4242
- uses: pnpm/action-setup@v4
4343

@@ -74,5 +74,3 @@ jobs:
7474
with:
7575
message: "ci: bump version to ${{ env.NEW_VERSION }} [skip ci]"
7676
default_author: github_actions
77-
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Copilot Setup Steps
2+
13
on:
24
workflow_dispatch:
35
push:

.github/workflows/publish-extension.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/publish-packages.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
auto-tag:
10+
runs-on: ubuntu-latest
11+
if: startsWith(github.event.head_commit.message, 'v')
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
17+
- name: Check commit message and create tag
18+
run: |
19+
COMMIT_MSG=$(git log -1 --pretty=%B)
20+
21+
if [[ $COMMIT_MSG =~ ^(v[0-9]+\.[0-9]+\.[0-9]+) ]]; then
22+
TAG_NAME="${BASH_REMATCH[1]}"
23+
git config user.name "github-actions[bot]"
24+
git config user.email "github-actions[bot]@users.noreply.github.com"
25+
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
26+
git push origin "$TAG_NAME"
27+
echo "✅ Tag $TAG_NAME created"
28+
else
29+
echo "❌ Invalid version format"
30+
exit 1
31+
fi
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
publish-npm:
36+
runs-on: ubuntu-latest
37+
needs: auto-tag
38+
if: success()
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- uses: pnpm/action-setup@v4
43+
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: 24
47+
cache: pnpm
48+
49+
- name: Install Lerna Lite
50+
run: pnpm add -g @lerna-lite/cli @lerna-lite/publish
51+
52+
- name: Install dependencies
53+
run: pnpm install --frozen-lockfile
54+
55+
- name: Build
56+
run: npm run build
57+
58+
- name: Publish to NPM
59+
env:
60+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
run: |
62+
lerna publish from-package --yes
63+
64+
publish-vscode-marketplace:
65+
runs-on: ubuntu-latest
66+
needs: auto-tag
67+
if: success()
68+
steps:
69+
- uses: actions/checkout@v4
70+
71+
- uses: pnpm/action-setup@v4
72+
73+
- uses: actions/setup-node@v4
74+
with:
75+
node-version: 24
76+
cache: pnpm
77+
78+
- name: Install global tools
79+
run: pnpm install -g @vscode/vsce
80+
81+
- name: Install dependencies
82+
run: pnpm install --frozen-lockfile
83+
84+
- name: Publish to VSCode Marketplace
85+
working-directory: extensions/vscode
86+
env:
87+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
88+
run: vsce publish
89+
90+
publish-open-vsx:
91+
runs-on: ubuntu-latest
92+
needs: auto-tag
93+
if: success()
94+
steps:
95+
- uses: actions/checkout@v4
96+
97+
- uses: pnpm/action-setup@v4
98+
99+
- uses: actions/setup-node@v4
100+
with:
101+
node-version: 24
102+
cache: pnpm
103+
104+
- name: Install global tools
105+
run: pnpm install -g ovsx
106+
107+
- name: Install dependencies
108+
run: pnpm install --frozen-lockfile
109+
110+
- name: Publish to Open VSX
111+
working-directory: extensions/vscode
112+
env:
113+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
114+
run: ovsx publish

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Test
2+
13
on: [push, pull_request]
24

35
jobs:

.github/workflows/update-html-data.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
name: Update HTML Data
2+
13
on:
2-
push:
3-
branches:
4-
- "master"
54
workflow_dispatch:
65
schedule:
76
- cron: "0 0 * * *"
@@ -24,16 +23,12 @@ jobs:
2423
node-version: 22
2524
cache: pnpm
2625

27-
# update data
2826
- name: Update HTML Data
2927
run: cd packages/language-service && npm run update-html-data
3028

31-
# commit
3229
- name: Commit
3330
uses: EndBug/add-and-commit@v9
3431
with:
3532
message: "ci(language-service): update html data"
3633
add: "packages/language-service/data"
3734
default_author: github_actions
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)