feat(azureai): Add support for azure open Ai (#377) #159
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: Release Package | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release-please.outputs.release_created }} | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release-please | |
with: | |
release-type: node | |
publish-package: | |
runs-on: ubuntu-latest | |
needs: release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Setup Node.js for npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "latest" | |
registry-url: "https://registry.npmjs.org" | |
- name: 💫 Install dependencies | |
run: bun i | |
- name: 🏡 Build package | |
run: bun run build | |
- name: 🚀 Publish code-review-gpt | |
run: npm publish --access public |