Mocha VS Code Extension v1.1.1 #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: | |
release: | |
types: | |
- created | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
prerelease: | |
name: Release (Pre-release) | |
runs-on: 'ubuntu-latest' | |
if: startsWith(github.ref, 'refs/tags/v') && github.event.release.prerelease | |
env: | |
GITHUB_CONTEXT: ${{ toJSON(github) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Build and Package | |
run: npm run package:release | |
- name: Publish (Microsoft Extension Gallery) | |
run: npm run publish:vsce:prerelease | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Build and Publish (Open VSX Registry) | |
run: npm run publish:ovsx:prerelease | |
env: | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
release: | |
name: Release (Full) | |
runs-on: 'ubuntu-latest' | |
if: startsWith(github.ref, 'refs/tags/v') && !github.event.release.prerelease | |
env: | |
GITHUB_CONTEXT: ${{ toJSON(github) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install | |
- name: Build and Package | |
run: npm run package:release | |
- name: Build and Publish (Microsoft Extension Gallery) | |
run: npm run publish:vsce:release | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
- name: Build and Publish (Open VSX Registry) | |
run: npm run publish:ovsx:release | |
env: | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} |