Skip to content

fix: github workflows #4

fix: github workflows

fix: github workflows #4

Workflow file for this run

name: Deploy to GitHub - Prod Stage
permissions:
contents: write
on:
push:
branches:
- production
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Package
run: npm run package
- name: Get version from package.json
id: package
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: vscode-json-v${{ steps.package.outputs.version }}
files: json-${{ steps.package.outputs.version }}.vsix