Skip to content

Kiota Gen Release

Kiota Gen Release #2

name: Kiota Gen Release
on:
workflow_dispatch:
inputs:
release-version:
description: 'Version being released'
required: true
jobs:
release:
name: Release Kiota Gen
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Check Node Version
run: node --version
- name: Checkout Code
uses: actions/checkout@v3
- name: Build Project
run: |
cd kiota-gen
npm install
npm run build
- name: Set version in package.json
run: |
cd kiota-gen/dist
npm version ${{ github.event.inputs.release-version }}
- name: Publish to npmjs.com
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd kiota-gen/dist
npm publish --access public