From f6649c9f00a205d4391aac1d3884cb978e30edeb Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Tue, 12 Mar 2024 19:57:56 +0200 Subject: [PATCH] ci: use wildcard in `build-and-upload` to support future additional packages, add cache to `setup` for yarn dependencies (#2015) --- .github/actions/setup/action.yml | 3 ++- .github/workflows/build-and-upload.yml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 3f9c7d966d..8d4ca6088b 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -13,8 +13,9 @@ runs: with: node-version-file: ".nvmrc" registry-url: https://registry.npmjs.org/ + cache: "yarn" - name: Install run: yarn shell: bash env: - NODE_AUTH_TOKEN: ${{inputs.npm_token}} + NODE_AUTH_TOKEN: ${{ inputs.npm_token }} diff --git a/.github/workflows/build-and-upload.yml b/.github/workflows/build-and-upload.yml index 02d78aad2c..066d0681c6 100644 --- a/.github/workflows/build-and-upload.yml +++ b/.github/workflows/build-and-upload.yml @@ -41,7 +41,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: ci-builds-${{ github.run_id }}-${{ github.run_attempt }} - path: | - packages/core/dist/ - packages/style/dist/ + path: "./packages/*/dist/" if-no-files-found: ignore