(Manual) Release #25
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: (Manual) Release | |
on: | |
workflow_dispatch: | |
inputs: | |
bump_type: | |
description: 'Version Bump Type (major/minor/patch)' | |
required: true | |
default: 'minor' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest-4-cores | |
if: github.repository == 'finos/legend-engine-ide-client-vscode' # prevent running this action in forks | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
token: ${{ secrets.FINOS_GITHUB_TOKEN }} | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "FINOS Administrator" | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
# The registry URL and `NODE_AUTH_TOKEN` are needed for `npm publish` to work properly | |
# See https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm | |
registry-url: 'https://registry.npmjs.org' | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
java-package: jdk | |
- name: Prepare for new release | |
run: | | |
npm version ${{ github.event.inputs.bump_type }} -m "bump version to %s" | |
git push origin main | |
- name: Install dependencies and build project | |
run: | | |
npm install | |
npm install -g @vscode/vsce | |
npm install -g ovsx | |
npm run release:prepare | |
- name: Publish to VS Code Marketplace | |
run: npm run release:marketPlace | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
# - name: Publish to OpenVSX Marketplace | |
# run: npm run release:openvsx -- -p ${{ secrets.OVSX_TOKEN }} | |