-
Notifications
You must be signed in to change notification settings - Fork 128
40 lines (32 loc) · 980 Bytes
/
deploy.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
name: Deploy server and extension
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shellcheck and shfmt (used for testing)
run: sudo apt-get install -y shellcheck shfmt
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- run: |
git config --local user.email "[email protected]"
git config --local user.name "skovhus"
name: Configure for pushing git tags
- run: bash scripts/release-client.sh
name: Deploy VS Code extension
env:
VSCE_TOKEN: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }}
- run: bash scripts/release-server.sh
name: Deploy server
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}