diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9f5ec6d --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/server/yarn.lock b/server/yarn.lock index a15994f..2c7dfcc 100644 --- a/server/yarn.lock +++ b/server/yarn.lock @@ -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" diff --git a/vsc-extension-quickstart.md b/vsc-extension-quickstart.md index 86f0744..87d4a31 100644 --- a/vsc-extension-quickstart.md +++ b/vsc-extension-quickstart.md @@ -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.