Skip to content

Merge branch 'main' of https://github.com/pshaddel/conventional-branch #31

Merge branch 'main' of https://github.com/pshaddel/conventional-branch

Merge branch 'main' of https://github.com/pshaddel/conventional-branch #31

name: Release
on:
push:
branches:
- main
jobs:
build:
permissions: write-all
name: Release
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Release
uses: justincy/[email protected]
id: release
- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
- name: Setup
uses: actions/[email protected]
with:
node-version: 16
- name: Install Packages
if: ${{ steps.release.outputs.released == 'true' }}
run: npm install
- name: Lint
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run lint
- name: Test
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run test
- name: Prepublish
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run vscode:prepublish
- name: Publish to VS Marketplace
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ steps.release.outputs.released == 'true' }}
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ steps.release.outputs.released == 'true' }}
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}