Mocha VS Code Extension v1.0.0-preview.1 #2
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 Publish | |
run: npm run publish:prerelease | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_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 Publish | |
run: npm run publish:release | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |