update other .npmrcs and yarn.locks (#4085) #988
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '20' | |
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 |