From 8e1ebac47ef8d4e074b7ce1cbd2257fe9e100f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:07:30 +0100 Subject: [PATCH 1/4] Add setup node to GHA workflow --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 802fe33b1..03554a578 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,10 @@ jobs: MAILCHIMP_CLIENT_SECRET: "mocked" steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" - name: Setup PNPM uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 with: From b91e4e36d30dba5591e0c864a7cad7a78431df41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:10:26 +0100 Subject: [PATCH 2/4] add cache --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 03554a578..f67b7e51f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,15 +15,16 @@ jobs: MAILCHIMP_CLIENT_SECRET: "mocked" steps: - uses: actions/checkout@v4 + - name: Setup PNPM + uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + with: + run_install: false - uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" cache: "pnpm" - - name: Setup PNPM - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 - with: - run_install: | - - args: [--frozen-lockfile] + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Check linter run: pnpm lint - name: Check types From 5af47d441cb5db4553803973dda55a7680d81a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:23:12 +0100 Subject: [PATCH 3/4] update e2e & prepare release workflow --- .github/workflows/e2e.yml | 9 +++++++-- .github/workflows/prepare-release.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 2260e1ab7..9595352e1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -30,8 +30,13 @@ jobs: - name: Setup PNPM uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 with: - run_install: | - - args: [--frozen-lockfile, --filter=app-avatax] + run_install: false + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile --filter=app-avatax - name: Get Saleor snapshot run: | BACKUP=$(pnpm dlx saleor backup list --name="snapshot-avatax-$SALEOR_VERSION" --latest --json) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 992c8ff8b..27ba87384 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -25,8 +25,13 @@ jobs: run: git fetch --tags origin - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 with: - run_install: | - - args: [--frozen-lockfile] + run_install: false + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + cache: "pnpm" + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Create Release Pull Request uses: changesets/action@e2f8e964d080ae97c874b19e27b12e0a8620fb6c # v1.4.6 id: changesets From 9a08bb025233db22b18e9dcf72cea0e4c5b76d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=BBuraw?= <9116238+krzysztofzuraw@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:54:20 +0100 Subject: [PATCH 4/4] update codeowners --- CODEOWNERS | 1 - 1 file changed, 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index c116e5460..8f5fbf671 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,5 +1,4 @@ * @saleor/apps-guild -/.github/ @saleor/SRE /apps/avatax @saleor/shopex-js /apps/segment @saleor/shopex-js