Add a GitHub Actions workflow for building and publishing the extension #805
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: Typecheck vscode-extension | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/typecheck-extension.yml" | |
- "packages/vscode-extension/**" | |
pull_request: | |
paths: | |
- ".github/workflows/typecheck-extension.yml" | |
- "packages/vscode-extension/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
if: github.repository == 'software-mansion/radon-ide' | |
runs-on: ubuntu-latest | |
env: | |
WORKING_DIRECTORY: packages/vscode-extension | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
cache-dependency-path: packages/vscode-extension/package-lock.json | |
- name: Install node dependencies | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
run: npm ci | |
- name: Typecheck extension | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
run: npm run typecheck |