Skip to content

Commit

Permalink
[fix] Fix action.yml (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Nov 6, 2023
1 parent 011b233 commit a8d6304
Show file tree
Hide file tree
Showing 15 changed files with 5,499 additions and 3,308 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-walls-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ai-review-flex": patch
---

[fix] Fix action.yml
2 changes: 1 addition & 1 deletion .github/workflows/ai-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: cd packages/ai-review-flex && pnpm build

- name: AI Review
run: node packages/ai-review-flex/dist/bin.js
run: node packages/ai-review-flex/dist/index.js
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,12 @@ jobs:
PACKAGE_VERSION: v${{ env.PACKAGE_VERSION }}
LATEST_TAG: ${{ steps.getLatestTag.outputs.tag }}

- name: Install dependencies
if: env.SHOULD_SKIP == 'false'
run: pnpm install --frozen-lockfile

- name: Build
if: env.SHOULD_SKIP == 'false'
run: cd packages/ai-review-flex && pnpm build

- name: Zip output
if: env.SHOULD_SKIP == 'false'
run: zip -r release ./

- uses: ncipollo/release-action@v1
if: env.SHOULD_SKIP == 'false'
with:
tag: v${{ env.PACKAGE_VERSION }}
name: v${{ env.PACKAGE_VERSION }}
body: "Please see the [CHANGELOG](./packages/ai-review-flex/CHANGELOG.md) for details."
artifacts: "release.zip"
skipIfReleaseExists: true

- name: Extract major version
Expand All @@ -114,6 +101,5 @@ jobs:
tag: ${{ env.MAJOR_VERSION }}
name: ${{ env.MAJOR_VERSION }}
body: "Please see the [CHANGELOG](./packages/ai-review-flex/CHANGELOG.md) for details."
artifacts: "release.zip"
allowUpdates: true
prerelease: ${{ env.IS_V0 }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ inputs:
required: false
runs:
using: "node20"
main: "packages/ai-review-flex/dist/bin.js"
main: "packages/ai-review-flex/dist/index.js"
150 changes: 0 additions & 150 deletions packages/ai-review-flex/dist/933.index.js

This file was deleted.

Loading

0 comments on commit a8d6304

Please sign in to comment.