Skip to content

Commit 1f56cc7

Browse files
authored
Merge pull request #23 from bitloops/add-ci
add ci workflow
2 parents 8ce66d2 + 17479d1 commit 1f56cc7

File tree

3 files changed

+60
-5
lines changed

3 files changed

+60
-5
lines changed

.github/workflows/ci.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '14.x'
20+
21+
- name: Cache dependencies
22+
uses: actions/cache@v2
23+
with:
24+
path: |
25+
./**/node_modules
26+
./**/yarn.lock
27+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
28+
29+
- name: Install dependencies and build
30+
run: |
31+
yarn install --frozen-lockfile
32+
yarn compile
33+
34+
- name: Get version
35+
id: package
36+
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
37+
38+
- name: Create GitHub release
39+
id: create_release
40+
uses: actions/create-release@v1
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
with:
44+
tag_name: ${{ steps.package.outputs.version }}
45+
release_name: Release ${{ steps.package.outputs.version }}
46+
draft: false
47+
prerelease: false
48+
49+
- name: Install vsce
50+
run: npm install -g vsce
51+
52+
- name: Publish to Marketplace
53+
env:
54+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
55+
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}

server/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@bitloops/bl-transpiler@^0.6.0":
6-
version "0.6.0"
7-
resolved "https://registry.yarnpkg.com/@bitloops/bl-transpiler/-/bl-transpiler-0.6.0.tgz#1e0c1630b3f4bc25ae57031730c81eb80c701044"
8-
integrity sha512-341dmGiLkBh6bMSuaoutF5u+wn0hHS6noEaiJTXHqnkBGTKCnyIolSOFGqVOHizzjVb5WiX5CABTfMTtcu1Dlg==
5+
"@bitloops/bl-transpiler@^0.6.8":
6+
version "0.6.8"
7+
resolved "https://registry.yarnpkg.com/@bitloops/bl-transpiler/-/bl-transpiler-0.6.8.tgz#c6c33356bbaa25c26fc898c1a4e2e32cd84f035f"
8+
integrity sha512-nNWTiDK7faX23i0BqEWt+66LbiY+u3waVZzStRQYpp6aVnnWgarspEBQg3vLjdj7wZfSfxfS0+TOIDRKACx0IQ==
99
dependencies:
1010
antlr4 "4.11.0"
1111
lodash "^4.17.21"

vsc-extension-quickstart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ When you run `tsc -b` in the root project, it will recursively build all the ref
1414
## Get up and running straight away
1515

1616
- `yarn`
17-
- `npm run compile`
17+
- `yarn compile`
1818
- Make sure the language configuration settings in `language-configuration.json` are accurate.
1919
- Press `F5` to open a new window with your extension loaded.
2020
- Create a new file with a file name suffix matching your language.

0 commit comments

Comments
 (0)