From b1727eba6923fabcec7e6485bba96cdd6b1b3f82 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 1 Jul 2024 11:42:32 +0200 Subject: [PATCH 1/6] infra(release): check release PR --- .github/workflows/check-release-pr.yml | 67 ++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/check-release-pr.yml diff --git a/.github/workflows/check-release-pr.yml b/.github/workflows/check-release-pr.yml new file mode 100644 index 00000000000..61838a1fdcb --- /dev/null +++ b/.github/workflows/check-release-pr.yml @@ -0,0 +1,67 @@ +name: Check Release PR + +on: + pull_request: + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + check_release_pr: + if: startsWith(github.head_ref, 'chore/release/') + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout faker + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + path: faker + + - name: Checkout playground + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + repository: faker-js/playground + path: playground + + - name: Install pnpm + uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 + with: + package_json_file: faker/package.json + + - name: Set node version to 22 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version: 22 + cache: 'pnpm' + cache-dependency-path: | + faker/pnpm-lock.yaml + playground/pnpm-lock.yaml + + - name: Install deps - faker + run: | + cd faker + pnpm install + env: + CYPRESS_INSTALL_BINARY: 0 + + - name: Build - faker + run: | + cd faker + pnpm run build + + - name: Install deps - playground + run: | + cd playground + sed -i 's/overrides-for-release/overrides/g' package.json + pnpm install --no-frozen-lockfile + + - name: Build - playground + run: | + cd playground + pnpm run build + + - name: Test - playground + run: | + cd playground + pnpm run test From e830b8a9ca4b57f2865e185521dd6e81611db64c Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 2 Jul 2024 22:02:30 +0200 Subject: [PATCH 2/6] chore: apply review suggestions --- .github/workflows/check-release-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-release-pr.yml b/.github/workflows/check-release-pr.yml index 61838a1fdcb..ad5ac8888b3 100644 --- a/.github/workflows/check-release-pr.yml +++ b/.github/workflows/check-release-pr.yml @@ -2,6 +2,8 @@ name: Check Release PR on: pull_request: + paths: + - 'CHANGELOG.md' permissions: contents: read # to fetch code (actions/checkout) @@ -53,7 +55,7 @@ jobs: - name: Install deps - playground run: | cd playground - sed -i 's/overrides-for-release/overrides/g' package.json + sed -i 's/overrides-for-release/overrides/' package.json pnpm install --no-frozen-lockfile - name: Build - playground From 1faf0ad66d8ae078e5590a4af8ee5339038c23b7 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 2 Jul 2024 22:07:45 +0200 Subject: [PATCH 3/6] changelog diff --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b5ff38aacb..ac7e0755d74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +DIFF + All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. ## [9.0.0-alpha.1](https://github.com/faker-js/faker/compare/v9.0.0-alpha.0...v9.0.0-alpha.1) (2024-06-22) From 348ef1d681b177c1fb0405362b966feb1919c8d4 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 2 Jul 2024 22:08:12 +0200 Subject: [PATCH 4/6] random diff From 8bfa82a1f423d77f4cd4fdd81e7533e4b8824078 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Tue, 2 Jul 2024 22:09:34 +0200 Subject: [PATCH 5/6] revert: changelog diff --- CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac7e0755d74..4b5ff38aacb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,5 @@ # Changelog -DIFF - All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. ## [9.0.0-alpha.1](https://github.com/faker-js/faker/compare/v9.0.0-alpha.0...v9.0.0-alpha.1) (2024-06-22) From a1a5a68529e2bfd88a180f6cf27891ba23c7718d Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Wed, 3 Jul 2024 01:00:12 +0200 Subject: [PATCH 6/6] chore: add name --- .github/workflows/check-release-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-release-pr.yml b/.github/workflows/check-release-pr.yml index ad5ac8888b3..a1acc1cad82 100644 --- a/.github/workflows/check-release-pr.yml +++ b/.github/workflows/check-release-pr.yml @@ -10,6 +10,7 @@ permissions: jobs: check_release_pr: + name: Check Release PR if: startsWith(github.head_ref, 'chore/release/') runs-on: ubuntu-latest timeout-minutes: 10