Skip to content

Commit

Permalink
Merge pull request #60 from ksv90/dev
Browse files Browse the repository at this point in the history
fix: test workflow ceated
  • Loading branch information
ksv90 authored Feb 25, 2024
2 parents a843b90 + 335b2e0 commit c1d2126
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Publish
on:
workflow_dispatch:
release:
types: [published]

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,9 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: node
validate:
needs: release
if: ${{ needs.release.outputs.release_created == '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: pnpm build
- run: pnpm lint
- run: pnpm test
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test

on:
pull_request:
branches:
- main
- 'release/**'

jobs:
test:
if: startsWith(github.head_ref, 'release-please--')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: pnpm build
- run: pnpm lint
- run: pnpm test
1 change: 0 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Validate

on:
pull_request:
workflow_dispatch:

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c1d2126

Please sign in to comment.