From db4c27f38f84b674db736020aa14a95c98ccf5f0 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:12:08 -0700 Subject: [PATCH] Fix new-release-branch workflow (#55893) --- .github/workflows/new-release-branch.yaml | 6 +++--- .github/workflows/set-version.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/new-release-branch.yaml b/.github/workflows/new-release-branch.yaml index 666b322cfce..03026e711e5 100644 --- a/.github/workflows/new-release-branch.yaml +++ b/.github/workflows/new-release-branch.yaml @@ -21,15 +21,15 @@ jobs: contents: write steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 5 - uses: actions/setup-node@v3 - run: | npm --version # corepack enable npm npm install -g $(jq -r '.packageManager' < package.json) npm --version - - uses: actions/checkout@v3 - with: - fetch-depth: 5 - run: | git checkout -b ${{ github.event.client_payload.branch_name }} sed -i -e 's/"version": ".*"/"version": "${{ github.event.client_payload.package_version }}"/g' package.json diff --git a/.github/workflows/set-version.yaml b/.github/workflows/set-version.yaml index 8e5ce9399d3..c641b03a17e 100644 --- a/.github/workflows/set-version.yaml +++ b/.github/workflows/set-version.yaml @@ -21,10 +21,10 @@ jobs: contents: write steps: - - uses: actions/setup-node@v3 - uses: actions/checkout@v3 with: ref: ${{ github.event.client_payload.branch_name }} + - uses: actions/setup-node@v3 - run: | npm --version # corepack enable npm