Enable GitHub Actions on branches and PRs #6
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: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
workflow_dispatch: | |
jobs: | |
package: | |
name: Package Extension | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 20.5.1 | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Build extension | |
run: | | |
npm install | |
npm install --global @vscode/vsce | |
./package.sh | |
- name: Upload extension | |
if: github.event_name != 'pull_request' | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./dist/* |