From d9ebe83c2f64dbcc2a1b7fb9befb8255b760771d Mon Sep 17 00:00:00 2001 From: Jeff Cooper Date: Thu, 31 Aug 2023 06:14:16 -0700 Subject: [PATCH 1/2] Build and test with Github Actions --- .github/workflows/pipeline.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..153e0fc --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,21 @@ +name: Pipeline + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - run: yarn + + - run: yarn lerna bootstrap + + - run: yarn lerna run test From dbdc8cccb7c7989fe3cf443a915945befffd6577 Mon Sep 17 00:00:00 2001 From: Jeff Cooper Date: Thu, 31 Aug 2023 07:09:30 -0700 Subject: [PATCH 2/2] Conditionally publish packages --- .github/workflows/pipeline.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 153e0fc..4b773a6 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -19,3 +19,7 @@ jobs: - run: yarn lerna bootstrap - run: yarn lerna run test + + - name: publish + if: github.event_name == 'release' + run: yarn lerna publish --from-git