-
Notifications
You must be signed in to change notification settings - Fork 160
57 lines (49 loc) · 1.69 KB
/
publish-extension.yml
File metadata and controls
57 lines (49 loc) · 1.69 KB
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
name: Build, test and publish extension
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies and update @flyde/* packages
working-directory: ./vscode
run: |
./prepublish.sh
npm install
npm update --scope=@flyde\
- name: Print flyde versions
working-directory: ./vscode
run: |
cat node_modules/@flyde/core/package.json | jq -r '.version'
cat node_modules/@flyde/stdlib/package.json | jq -r '.version'
cat node_modules/@flyde/runtime/package.json | jq -r '.version'
cat node_modules/@flyde/resolver/package.json | jq -r '.version'
- name: Build extension
working-directory: ./vscode
run: npm run build
- name: Test extension
working-directory: ./vscode
run: xvfb-run -a npm run test
env:
SKIP_VISUAL_TESTS: true
# - name: Bump minor version
# working-directory: ./vscode
# run: |
# git config --global user.name "GitHub Actions"
# git config --global user.email "github-actions@users.noreply.github.com"
# npm version minor -m "Bump version to %s"
# git commit -am "vscode: bumps versions"
# git push origin main
- name: Package and publish extension
working-directory: ./vscode
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
run: |
npm install -g @vscode/vsce
vsce publish -p $VSCE_TOKEN