From 788f25199e60c08520be88a18c6b0246330eed17 Mon Sep 17 00:00:00 2001 From: Dan Kochetov Date: Mon, 18 Mar 2024 16:15:13 +0200 Subject: [PATCH 1/3] Fix typos in pipeline --- .github/workflows/release-feature-branch.yaml | 4 ++-- .github/workflows/release-latest.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-feature-branch.yaml b/.github/workflows/release-feature-branch.yaml index aca453802..95cf06aef 100644 --- a/.github/workflows/release-feature-branch.yaml +++ b/.github/workflows/release-feature-branch.yaml @@ -92,8 +92,8 @@ jobs: is_version_published="$(npm view ${{ matrix.package }} versions --json | jq -r '.[] | select(. == "'$version'") | . == "'$version'"')" if [[ "$is_version_published" == "true" ]]; then - echo "\`${{ matrix.package }}@ $version\` already published, adding tag \`$tag\`" >> $GITHUB_STEP_SUMMARY - npm dist-tag add ${{ matrix.package }}@ $version $tag + echo "\`${{ matrix.package }}$version\` already published, adding tag \`$tag\`" >> $GITHUB_STEP_SUMMARY + npm dist-tag add ${{ matrix.package }}@$version $tag else { echo "version=$version" diff --git a/.github/workflows/release-latest.yaml b/.github/workflows/release-latest.yaml index df0eeb323..fcea3ec3b 100644 --- a/.github/workflows/release-latest.yaml +++ b/.github/workflows/release-latest.yaml @@ -83,8 +83,8 @@ jobs: is_version_published="$(npm view ${{ matrix.package }} versions --json | jq -r '.[] | select(. == "'$version'") | . == "'$version'"')" if [[ "$is_version_published" == "true" ]]; then - echo "\`${{ matrix.package }}@ $version\` already published, adding tag \`latest\`" >> $GITHUB_STEP_SUMMARY - npm dist-tag add ${{ matrix.package }}@ $version latest + echo "\`${{ matrix.package }}@$version\` already published, adding tag \`latest\`" >> $GITHUB_STEP_SUMMARY + npm dist-tag add ${{ matrix.package }}@$version latest elif [[ "$latest" != "$version" ]]; then echo "Latest: $latest" echo "Current: $version" From 6e8fe7755c36e21b3bfcd7f5671dcef4da730beb Mon Sep 17 00:00:00 2001 From: Dan Kochetov Date: Tue, 19 Mar 2024 01:14:11 +0200 Subject: [PATCH 2/3] Bump actions versions --- .github/workflows/release-feature-branch.yaml | 10 +++++----- .github/workflows/release-latest.yaml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-feature-branch.yaml b/.github/workflows/release-feature-branch.yaml index aca453802..0189277d2 100644 --- a/.github/workflows/release-feature-branch.yaml +++ b/.github/workflows/release-feature-branch.yaml @@ -49,14 +49,14 @@ jobs: ports: - 3306:3306 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 name: Install pnpm id: pnpm-install with: @@ -67,9 +67,9 @@ jobs: id: pnpm-cache shell: bash run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} diff --git a/.github/workflows/release-latest.yaml b/.github/workflows/release-latest.yaml index df0eeb323..c6b94cf63 100644 --- a/.github/workflows/release-latest.yaml +++ b/.github/workflows/release-latest.yaml @@ -42,14 +42,14 @@ jobs: ports: - 3306:3306 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 name: Install pnpm id: pnpm-install with: @@ -62,7 +62,7 @@ jobs: run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: Setup pnpm cache with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} From 96c8046a6db666ef4011e982fb7b2f4d2cf730f7 Mon Sep 17 00:00:00 2001 From: Dan Kochetov Date: Tue, 19 Mar 2024 01:15:06 +0200 Subject: [PATCH 3/3] Fix flag --- .github/workflows/release-latest.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-latest.yaml b/.github/workflows/release-latest.yaml index c6b94cf63..a8c7db1da 100644 --- a/.github/workflows/release-latest.yaml +++ b/.github/workflows/release-latest.yaml @@ -60,7 +60,7 @@ jobs: id: pnpm-cache shell: bash run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 name: Setup pnpm cache