diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml new file mode 100644 index 0000000..bda998e --- /dev/null +++ b/.github/workflows/CD.yml @@ -0,0 +1,22 @@ +name: "CD" + +on: + push: + branches: + - main + +jobs: + tests: + uses: ./.github/workflows/tests.yml + type-check: + uses: ./.github/workflows/type-check.yml + build: + needs: [tests, type-check] + uses: ./.github/workflows/build.yml + with: + artifact-name: "lib-latest" + build-storybook: + needs: [tests, type-check] + uses: ./.github/workflows/build-storybook.yml + with: + artifact-name: "storybook-latest" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aaeb8a2..62a301f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,6 @@ name: "CI" -on: [pull_request] +on: pull_request jobs: tests: