mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-16 06:28:12 -05:00
Fix new-release-branch workflow (#55893)
This commit is contained in:
6
.github/workflows/new-release-branch.yaml
vendored
6
.github/workflows/new-release-branch.yaml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/set-version.yaml
vendored
2
.github/workflows/set-version.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user