-
Notifications
You must be signed in to change notification settings - Fork 117
58 lines (46 loc) · 1.49 KB
/
publish-ide-extension.yml
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
name: Publish Sherlock (VS Code extension)
on:
workflow_dispatch:
push:
paths:
- "inlang/source-code/ide-extension/package.json"
branches:
- main
jobs:
vs-code-marketplace:
runs-on: ubuntu-latest
environment: vscode-marketplace
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: pnpm install
- name: Install Doppler CLI for env variables
uses: dopplerhq/cli-action@v2
- name: Build
run: doppler run -- pnpm build
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_PRODUCTION_ENV_TOKEN }}
- name: Test
run: doppler run -- pnpm test
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_PRODUCTION_ENV_TOKEN }}
- name: Build Visual Studio Code extension (Sherlock) package
run: doppler run -- pnpm --filter vs-code-extension package
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_PRODUCTION_ENV_TOKEN }}
- name: Publish to Visual Studio Code Marketplace
run: pnpm --filter vs-code-extension run publish -p ${{secrets.VSCODE_MARKETPLACE_TOKEN}}
working-directory: ./inlang/source-code/ide-extension
env:
VSCE_TOKEN: ${{secrets.VSCODE_MARKETPLACE_TOKEN}}