From 4bcc38eb06dde2f4515bfe0d963deb83b5892cff Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 6 Mar 2024 12:15:22 +0100 Subject: [PATCH] update generate workflow --- .github/workflows/generate.yaml | 16 +++++++++------- pnpm-workspace.yaml | 2 ++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 pnpm-workspace.yaml diff --git a/.github/workflows/generate.yaml b/.github/workflows/generate.yaml index 86d90e05..7684ec75 100644 --- a/.github/workflows/generate.yaml +++ b/.github/workflows/generate.yaml @@ -37,18 +37,20 @@ jobs: - name: Go mod tidy run: go mod tidy + working-directory: ./packages/golang - name: Install generators uses: magefile/mage-action@v3 with: version: latest - args: bootstrap + + - name: Bootstrap + run: mage bootstrap + working-directory: ./packages/golang - name: Generate Protobuf - uses: magefile/mage-action@v3 - with: - version: latest - args: proto + run: mage proto + working-directory: ./packages/golang - uses: pnpm/action-setup@v2 with: @@ -65,10 +67,10 @@ jobs: run: pnpm install - name: Generate JS files run: | - pnpm generate:proto + pnpm --filter @livekit/protocol run generate:proto - name: Add changes uses: EndBug/add-and-commit@v9 with: - add: '["livekit", "rpc", "infra", "packages/js"]' + add: '["packages"]' default_author: github_actions message: generated protobuf diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..46a22fbf --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - "packages/javascript"