From 785a6a59e59207987fd89dcf10c96d927ee79b7f Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 17:48:18 +0100 Subject: [PATCH 1/7] chore(gh-actions): adding manual trigger (#240) add workflow manual trigger --- .github/workflows/release-and-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index fe64fa74..deb0441b 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -5,6 +5,7 @@ on: branches: - master types: [closed] + workflow_dispatch: permissions: contents: write From 607a5aa4057ca8b7c937e5ce59a73ba6efdf265e Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 17:51:45 +0100 Subject: [PATCH 2/7] chore(gh-actions): add pnpm version (#242) add pnpm package version to workflow --- .github/workflows/build-test.yml | 2 +- .github/workflows/release-and-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index b0f066ab..85f016bf 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -20,7 +20,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9 + version: 9.14.4 - uses: actions/checkout@v4 - name: Build monorepo and with Node ${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index deb0441b..78832f60 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -21,7 +21,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v4 with: - version: 9 + version: 9.14.4 - uses: actions/checkout@v4 - name: Build monorepo uses: actions/setup-node@v4 From c7d2cbc046937409623cc395ef279d8c8b1a4071 Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 21:16:11 +0100 Subject: [PATCH 3/7] chore/release-gh-actions (#244) chore(gh-actions): add pnpm version add pnpm package version to workflow add pnpm setup to release flow --- .github/workflows/release-and-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 78832f60..b4318f0a 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -37,6 +37,10 @@ jobs: with: fetch-depth: 0 persist-credentials: false + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.14.4 - name: Setup Github Credentials run: | git config --global user.name "${{ github.actor }}" From 032e82e79f2c2eba1f876dc20d465aa7ae076333 Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 21:29:43 +0100 Subject: [PATCH 4/7] chore: fix release workflow (#247) remove setting up git credentials --- .github/workflows/release-and-publish.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index b4318f0a..ac9e6326 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -41,11 +41,6 @@ jobs: uses: pnpm/action-setup@v4 with: version: 9.14.4 - - name: Setup Github Credentials - run: | - git config --global user.name "${{ github.actor }}" - git config --global user.email "${{ github.actor }}@users.noreply.github.com" - git remote set-url origin https://${{ github.actor }}:${{ secrets.GH_ACCESS_TOKEN }}@github.com/${{ github.repository }} - name: Create Release uses: actions/setup-node@v4 with: From e06b47edcbaf1deda0fc1090d5475521715796f9 Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 21:35:25 +0100 Subject: [PATCH 5/7] chore: fix release workflow (#249) revert setting up git credentials --- .github/workflows/release-and-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index ac9e6326..182b1b02 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -41,6 +41,10 @@ jobs: uses: pnpm/action-setup@v4 with: version: 9.14.4 + - name: Setup Github Credentials + run: | + git config --global user.name "${{ github.actor }}" + git config --global user.email "${{ github.actor }}@users.noreply.github.com" - name: Create Release uses: actions/setup-node@v4 with: From 8bd69b252eb9ce642a8a5d3f2ce8d45615e70b35 Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 21:44:04 +0100 Subject: [PATCH 6/7] chore: fix release workflow (#251) revert setting up git credentials revert removing git remote --- .github/workflows/release-and-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 182b1b02..b4318f0a 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -45,6 +45,7 @@ jobs: run: | git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com" + git remote set-url origin https://${{ github.actor }}:${{ secrets.GH_ACCESS_TOKEN }}@github.com/${{ github.repository }} - name: Create Release uses: actions/setup-node@v4 with: From 7b870e2ebffcfa64de47aa80f59e6397f23f79dc Mon Sep 17 00:00:00 2001 From: Aleksei Semiglasov Date: Mon, 2 Dec 2024 21:54:33 +0100 Subject: [PATCH 7/7] chore: fix release workflow (#253) chore: fix release workflow revert setting up git credentials revert removing git remote add auto confirm for release prompts --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bed7a416..1e2a7580 100644 --- a/Makefile +++ b/Makefile @@ -24,4 +24,4 @@ clear: npx -y rimraf -rf node_modules .PHONY: release release: - npx nx release + npx nx release -y