Skip to content

Sort CMakeLists.txt by depth (#3789) #870

Sort CMakeLists.txt by depth (#3789)

Sort CMakeLists.txt by depth (#3789) #870

Workflow file for this run

name: Build VSIX
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '16'
check-latest: true
- name: Get Short SHA
id: get-short-sha
run: echo "sha=$(git rev-parse --short ${GITHUB_SHA})" >> $GITHUB_OUTPUT
- name: Update the package version
uses: jacobtomlinson/gha-find-replace@master
with:
find: "\"version\": \"(\\d+\\.\\d+\\.\\d+)\""
replace: "\"version\": \"$1-${{ steps.get-short-sha.outputs.sha }}\""
include: "package.json"
exclude: ".git"
- name: Build the VSIX
run: |
yarn install
yarn run package
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: cmake-tools.vsix
path: ./cmake-tools.vsix
if-no-files-found: error