Skip to content

Merge pull request #18 from SMJSGaming/conditional-load #19

Merge pull request #18 from SMJSGaming/conditional-load

Merge pull request #18 from SMJSGaming/conditional-load #19

Workflow file for this run

name: Build vsix
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Package
run: pnpm exec vsce package
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Built extension
path: "*.vsix"