Skip to content

Update package.json #14

Update package.json

Update package.json #14

Workflow file for this run

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: startsWith(github.ref, 'refs/tags/releases/')
run: |
npx vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}