Skip to content

VSCE package

VSCE package #16

name: 'VSCE package'
run-name: "VSCE package"
on:
workflow_dispatch:
permissions:
contents: write
jobs:
CreateApp:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: './Git-to-AL-project-configurator/package-lock.json'
- name: Install dependencies
run: |
cd Git-to-AL-project-configurator
npm install
- name: Install vsce globally
run: npm install -g @vscode/vsce
- name: Package VS Code Extension
run: |
cd Git-to-AL-project-configurator
vsce package --out ../GitToALProjectCfg.vsix
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: GitToALProjectCfg.vsix
path: GitToALProjectCfg.vsix
if-no-files-found: error
- name: Commit VSIX to Repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update repository with new version of VSIX package"
file_pattern: "*.vsix"