Skip to content

Mocha VS Code Extension v1.0.0-preview.1 #2

Mocha VS Code Extension v1.0.0-preview.1

Mocha VS Code Extension v1.0.0-preview.1 #2

Workflow file for this run

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 }}