-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (54 loc) · 1.49 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Package Extension
on:
pull_request:
push:
branches: [main]
tags-ignore:
- "**"
release:
types:
- created
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun prettier . --check
- run: bun eslint
- run: bun run tsc --noEmit
- name: Test
run: bun test
package:
name: "Package"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --production
- run: bun run package
- name: Setup Environment
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}.vsix
path: ./${{ env.PACKAGE_NAME }}.vsix
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/v')
run: bun vsce-publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
jetbrains:
name: "JetBrains"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun build-jetbrains
- uses: actions/upload-artifact@v4
with:
name: "Jetbrains"
path: "./dist/jetbrains/"