Skip to content

Commit

Permalink
ci: fix CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jan 23, 2024
1 parent 7553c6c commit 48a269e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:

release:
needs: [test,coverall]
if: github.event_name == 'push' && github.repository == 'node-casbin/mongoose-adapter'
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
Expand All @@ -72,14 +73,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v2
with:
node-version: 20

- name: Install Dependency
run: yarn install --ignore-engines

- name: Build library
run: yarn run build

- name: Release
if: github.event_name == 'push' && github.repository == 'node-casbin/mongoose-adapter'
run: npx -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/commit-analyzer -p @semantic-release/release-notes-generator -p @semantic-release/release-notes-generator -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/github semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 48a269e

Please sign in to comment.