From c7c3b6f40847a87c36b2127502e87b1be2776c05 Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:37:36 -0400 Subject: [PATCH 01/12] chore: new branch --- .github/workflows/production.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index d3f98c7..843161a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - 'pavel/workflow' jobs: Test: From 94590bbc9b73caac3d93cbbb2bfd06135f8ae30d Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:47:04 -0400 Subject: [PATCH 02/12] build(config): revert to old install --- .github/workflows/development.yml | 6 +++++- .github/workflows/production.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index bf500d1..81cc359 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -34,7 +34,11 @@ jobs: node-version: ${{ matrix.node }} - name: 📥 Download deps - run: npm ci + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + env: + HUSKY_SKIP_INSTALL: true - name: 🏗 Build run: npm run build --if-present diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 843161a..26e17b5 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -64,6 +64,8 @@ jobs: id: semantic with: semantic_version: 18 + dry_run: true + ci: false extra_plugins: | @semantic-release/changelog@6.0.3 @semantic-release/git@10.0.1 From 82b204e03b42344783a1f2330fe5b07fe28251bd Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:51:15 -0400 Subject: [PATCH 03/12] build(config): remove this branch --- .github/workflows/production.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 26e17b5..d3f98c7 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - 'pavel/workflow' jobs: Test: @@ -64,8 +63,6 @@ jobs: id: semantic with: semantic_version: 18 - dry_run: true - ci: false extra_plugins: | @semantic-release/changelog@6.0.3 @semantic-release/git@10.0.1 From 8df95927c56f87f15bc2dd92d664b3e3fecbb483 Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:52:42 -0400 Subject: [PATCH 04/12] build(config): remove versions --- .github/workflows/development.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 81cc359..be7e6a3 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -54,9 +54,9 @@ jobs: dry_run: true ci: false extra_plugins: | - @semantic-release/changelog@6.0.3 - @semantic-release/git@10.0.1 - @semantic-release/github@9.0.5 + @semantic-release/changelog + @semantic-release/git + @semantic-release/github branches: | [ 'main', From 71484870b7f762fd51c997a538da1aa0465276a5 Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:00:25 -0400 Subject: [PATCH 05/12] build(config): remove package --- .github/workflows/development.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index be7e6a3..19f21b0 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -33,12 +33,8 @@ jobs: with: node-version: ${{ matrix.node }} - - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: false - env: - HUSKY_SKIP_INSTALL: true + - name: 📥 Install deps + run: npm ci - name: 🏗 Build run: npm run build --if-present @@ -56,7 +52,6 @@ jobs: extra_plugins: | @semantic-release/changelog @semantic-release/git - @semantic-release/github branches: | [ 'main', From eddfd3dca313e4bb3179d2c195ae6f29e46eaab0 Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:03:48 -0400 Subject: [PATCH 06/12] build(config): add this branch --- .github/workflows/production.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index d3f98c7..6cacb72 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - 'pavel/worflow' jobs: Test: @@ -64,9 +67,9 @@ jobs: with: semantic_version: 18 extra_plugins: | - @semantic-release/changelog@6.0.3 - @semantic-release/git@10.0.1 - @semantic-release/github@9.0.5 + @semantic-release/changelog + @semantic-release/git + @semantic-release/github branches: | [ 'main', From 8bc0a693d555975436f656d46aac1e61fdce1c3b Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:06:02 -0400 Subject: [PATCH 07/12] build(config): move branch to push --- .github/workflows/production.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 6cacb72..3b7a2f4 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,8 +4,6 @@ on: push: branches: - main - pull_request: - branches: - 'pavel/worflow' jobs: From ab73e2313a8e202aeff89aab57f03cba71b2befa Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:07:36 -0400 Subject: [PATCH 08/12] build(config): fix typo --- .github/workflows/production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 3b7a2f4..6f787bb 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - 'pavel/worflow' + - 'pavel/workflow' jobs: Test: From 63ea35e582bb883ccb8300e72c81a5e47f5e65ad Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:11:37 -0400 Subject: [PATCH 09/12] build(config): add dry run step --- .github/workflows/production.yml | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 6f787bb..2559502 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -83,3 +83,58 @@ jobs: GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} + + Dry: + name: 🚀 Dry Run 🚀 + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: [18] + os: [ubuntu-latest] + if: ${{ github.ref == 'refs/heads/pavel/workflow' }} + needs: [Test] + steps: + - name: ⎔ Setup node ${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - name: 📥 Download deps + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + env: + HUSKY_SKIP_INSTALL: true + + - name: 🏗 Build + run: npm run build + + - name: 🚨 Format + run: npm run format + + - name: 🚀 Release Dry Run + uses: cycjimmy/semantic-release-action@v3 + id: semantic + with: + semantic_version: 18 + dry_run: true + ci: false + extra_plugins: | + @semantic-release/changelog + @semantic-release/git + @semantic-release/github + branches: | + [ + 'main', + 'next', + 'next-major', + {name: 'beta', prerelease: true}, + {name: 'alpha', prerelease: true} + ] + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} + GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} + GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} From 5fcf346e9f42da32ef97323a9a4d462034feddf1 Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:19:12 -0400 Subject: [PATCH 10/12] build(config): remove useLockFile --- .github/workflows/production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 2559502..0353aae 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -102,7 +102,7 @@ jobs: - name: 📥 Download deps uses: bahmutov/npm-install@v1 with: - useLockFile: false + useLockFile: true env: HUSKY_SKIP_INSTALL: true From 2d22381c3bcdf9c39b4e52b6c43da2253b4c4bfa Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:25:30 -0400 Subject: [PATCH 11/12] build(config): use dev workflow --- .github/workflows/production.yml | 47 +++++++++----------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 0353aae..0f5fd62 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -7,30 +7,6 @@ on: - 'pavel/workflow' jobs: - Test: - name: 🚨 Test 🚨 - runs-on: ${{ matrix.os }} - strategy: - matrix: - node: [18] - os: [ubuntu-latest] - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - - name: Setup Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: "npm" - - - run: npm install - - run: npm run build - - run: npm run format - Publish: name: 🚀 Publish 🚀 runs-on: ${{ matrix.os }} @@ -38,8 +14,9 @@ jobs: matrix: node: [18] os: [ubuntu-latest] + if: ${{ github.ref == 'refs/heads/main' }} - needs: [Test] + steps: - name: ⎔ Setup node ${{ matrix.node }} uses: actions/setup-node@v3 @@ -91,23 +68,25 @@ jobs: matrix: node: [18] os: [ubuntu-latest] + if: ${{ github.ref == 'refs/heads/pavel/workflow' }} - needs: [Test] steps: + - name: ⬇️ Checkout repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + - name: ⎔ Setup node ${{ matrix.node }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: true - env: - HUSKY_SKIP_INSTALL: true + - name: 📥 Install deps + run: npm ci - name: 🏗 Build - run: npm run build + run: npm run build --if-present - name: 🚨 Format run: npm run format @@ -122,7 +101,6 @@ jobs: extra_plugins: | @semantic-release/changelog @semantic-release/git - @semantic-release/github branches: | [ 'main', @@ -131,6 +109,7 @@ jobs: {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true} ] + env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6277557aa6b75e0f7ed89e3a33513d43da3a500f Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:31:37 -0400 Subject: [PATCH 12/12] build(config): update release job --- .github/workflows/production.yml | 57 +------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 0f5fd62..112d40f 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -4,7 +4,7 @@ on: push: branches: - main - - 'pavel/workflow' + - beta jobs: Publish: @@ -17,59 +17,6 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} - steps: - - name: ⎔ Setup node ${{ matrix.node }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: false - env: - HUSKY_SKIP_INSTALL: true - - - name: 🏗 Build - run: npm run build - - - name: 🚨 Format - run: npm run format - - - name: 🚀 Release Dry Run - uses: cycjimmy/semantic-release-action@v3 - id: semantic - with: - semantic_version: 18 - extra_plugins: | - @semantic-release/changelog - @semantic-release/git - @semantic-release/github - branches: | - [ - 'main', - 'next', - 'next-major', - {name: 'beta', prerelease: true}, - {name: 'alpha', prerelease: true} - ] - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GH_TOKEN: ${{ secrets.GH_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} - GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} - GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} - GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} - - Dry: - name: 🚀 Dry Run 🚀 - runs-on: ${{ matrix.os }} - strategy: - matrix: - node: [18] - os: [ubuntu-latest] - - if: ${{ github.ref == 'refs/heads/pavel/workflow' }} steps: - name: ⬇️ Checkout repo uses: actions/checkout@v4 @@ -96,8 +43,6 @@ jobs: id: semantic with: semantic_version: 18 - dry_run: true - ci: false extra_plugins: | @semantic-release/changelog @semantic-release/git