Kiota Gen Release #2
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: 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 |