v0.1.0 Cache #1
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
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: yarn | |
- run: yarn compile | |
- run: yarn lint | |
- name: Get VS Code versions | |
run: curl --output vscode-stable-versions.json https://update.code.visualstudio.com/api/releases/stable | |
- uses: actions/cache@v4 | |
with: | |
path: .vscode-test/ | |
key: vscode-test-${{ hashFiles('vscode-stable-versions.json') }} | |
restore-keys: vscode-test- | |
- name: Run VS Code tests | |
run: xvfb-run -a yarn vscode-test | |
- name: Publish VS Code extension | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
run: yarn deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |