package lock update #22
Workflow file for this run
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: VSCode Publish | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo at the pushed tag | |
uses: actions/checkout@v4 | |
with: | |
# This configures the action to checkout the commit that was tagged, | |
# which is effectively the code state you want to work with. | |
ref: ${{ github.ref }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Cache NPM | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/vscode/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Dependencies | |
run: | | |
cd vscode | |
npm ci | |
- name: Publish Release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cd vscode | |
npx vsce publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |