Skip to content

Commit

Permalink
Merge pull request #23 from bitloops/add-ci
Browse files Browse the repository at this point in the history
add ci workflow
  • Loading branch information
Varagos authored May 31, 2023
2 parents 8ce66d2 + 17479d1 commit 1f56cc7
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
./**/node_modules
./**/yarn.lock
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies and build
run: |
yarn install --frozen-lockfile
yarn compile
- name: Get version
id: package
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"

- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.package.outputs.version }}
release_name: Release ${{ steps.package.outputs.version }}
draft: false
prerelease: false

- name: Install vsce
run: npm install -g vsce

- name: Publish to Marketplace
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
8 changes: 4 additions & 4 deletions server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@bitloops/bl-transpiler@^0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@bitloops/bl-transpiler/-/bl-transpiler-0.6.0.tgz#1e0c1630b3f4bc25ae57031730c81eb80c701044"
integrity sha512-341dmGiLkBh6bMSuaoutF5u+wn0hHS6noEaiJTXHqnkBGTKCnyIolSOFGqVOHizzjVb5WiX5CABTfMTtcu1Dlg==
"@bitloops/bl-transpiler@^0.6.8":
version "0.6.8"
resolved "https://registry.yarnpkg.com/@bitloops/bl-transpiler/-/bl-transpiler-0.6.8.tgz#c6c33356bbaa25c26fc898c1a4e2e32cd84f035f"
integrity sha512-nNWTiDK7faX23i0BqEWt+66LbiY+u3waVZzStRQYpp6aVnnWgarspEBQg3vLjdj7wZfSfxfS0+TOIDRKACx0IQ==
dependencies:
antlr4 "4.11.0"
lodash "^4.17.21"
Expand Down
2 changes: 1 addition & 1 deletion vsc-extension-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ When you run `tsc -b` in the root project, it will recursively build all the ref
## Get up and running straight away

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

0 comments on commit 1f56cc7

Please sign in to comment.