Fix new-release-branch workflow (#55893)

This commit is contained in:
Jake Bailey 2023-09-27 11:12:08 -07:00 committed by GitHub
parent 836576d401
commit db4c27f38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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