indent #11
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: Validate PR on push | ||
on: | ||
push: | ||
branches: [master, staging, trying] | ||
pull_request: | ||
jobs: | ||
build: | ||
name: Build | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- run: npm install --frozen-lockfile | ||
- run: npm run pretest | ||
name: Publish the VS Code Extension to Open VSX | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- run: npm install --frozen-lockfile | ||
- run: npm install -g vsce | ||
- run: npm run pretest | ||
- name: Finally, publish to the marketplace. | ||
run: npm run publish --registry=https://open-vsx.org/ | ||
env: | ||
VSCE_PAT: ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }} |