Skip to content

ReleaseV2

ReleaseV2 #16

Workflow file for this run

name: ReleaseV2
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: release action
run: |
echo Starting the CLI release
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.COGNIGY_CLI_RELEASE_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install semantic-release extra plugins
run: npm --save-dev i @semantic-release/changelog @semantic-release/git
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_CI }}
GITHUB_TOKEN: ${{ secrets.COGNIGY_CLI_RELEASE_TOKEN }}
run: npx semantic-release@23.0.2