Support running in web mode #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building bundle | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- created | |
jobs: | |
build-all: | |
name: 'Building' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-latest ] | |
node-version: [ 16.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Build Hexa VSCode bundle | |
run: | | |
npx vsce package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: vshexa-${{ github.sha }} | |
path: '*.vsix' | |
deploy-all: | |
name: 'Deploying' | |
needs: build-all | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-latest ] | |
node-version: [ 16.x ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Publish Hexa VSCode bundle | |
if: github.event_name == 'release' && github.event.action == 'created' | |
run: | | |
node tagToVersion.js ${{ github.ref_name }} | |
npx vsce publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |