Skip to content

Commit db4c27f

Browse files
authored
Fix new-release-branch workflow (microsoft#55893)
1 parent 836576d commit db4c27f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/new-release-branch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
contents: write
2222

2323
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 5
2427
- uses: actions/setup-node@v3
2528
- run: |
2629
npm --version
2730
# corepack enable npm
2831
npm install -g $(jq -r '.packageManager' < package.json)
2932
npm --version
30-
- uses: actions/checkout@v3
31-
with:
32-
fetch-depth: 5
3333
- run: |
3434
git checkout -b ${{ github.event.client_payload.branch_name }}
3535
sed -i -e 's/"version": ".*"/"version": "${{ github.event.client_payload.package_version }}"/g' package.json

.github/workflows/set-version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
contents: write
2222

2323
steps:
24-
- uses: actions/setup-node@v3
2524
- uses: actions/checkout@v3
2625
with:
2726
ref: ${{ github.event.client_payload.branch_name }}
27+
- uses: actions/setup-node@v3
2828
- run: |
2929
npm --version
3030
# corepack enable npm

0 commit comments

Comments
 (0)