fix(template): pass repo-token to labeler #6
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ develop, main ] | |
| pull_request: | |
| branches: [ develop, main ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies (if any) | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| npm ci || npm install | |
| else | |
| echo "No package.json found, skipping npm install" | |
| fi | |
| - name: Run tests | |
| shell: bash | |
| run: | | |
| if [ -f package.json ]; then | |
| npm test | |
| else | |
| echo "No package.json found, skipping tests" | |
| fi | |
| - name: Optional package step (vsix) | |
| shell: bash | |
| run: | | |
| if npm run package --silent >/dev/null 2>&1; then | |
| npm run package | |
| else | |
| echo "No package script; attempting to create VSIX with vsce" | |
| npm install -g @vscode/vsce || true | |
| vsce package || echo "vsce package failed or not configured" | |
| fi |