Skip to content

Commit

Permalink
Reuse build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcuena committed Aug 8, 2023
1 parent 934c7af commit f42dfde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

on:
[push, pull_request]
[push, pull_request, workflow_call]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: ./.github/workflows/build.yml@main
- name: Deploy package
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit f42dfde

Please sign in to comment.