Skip to content

Commit 8311128

Browse files
committed
add ci
1 parent d338f1a commit 8311128

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
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/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bitloops-lsp-server",
33
"description": "BitLoops Language Server",
4-
"version": "0.3.3",
4+
"version": "0.3.4",
55
"publisher": "Bitloops",
66
"license": "MIT",
77
"engines": {

0 commit comments

Comments
 (0)