Inline rush version in github actions (#4270)
This commit is contained in:
Родитель
497a47ceca
Коммит
a1c83c68ba
|
@ -36,7 +36,7 @@ jobs:
|
|||
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
# Install rush
|
||||
- name: Install rush
|
||||
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'breaking-change') }}
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
# Checkout the branch to be merged into in PR
|
||||
- name: Checkout base branch
|
||||
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'breaking-change') }}
|
||||
|
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -153,7 +153,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -256,7 +256,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -309,7 +309,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -389,7 +389,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -469,7 +469,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -546,7 +546,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -610,7 +610,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- name: Build
|
||||
|
@ -639,7 +639,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -685,7 +685,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -731,7 +731,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor if necessary
|
||||
|
@ -774,7 +774,7 @@ jobs:
|
|||
with:
|
||||
node-version: 'lts/*'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -838,7 +838,7 @@ jobs:
|
|||
with:
|
||||
node-version: 'lts/*'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
node-version: '20.x'
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.100.1
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Generate APIs
|
||||
|
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install Rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
|
||||
- name: Set commit SHA as environment variable
|
||||
run: echo "REACT_APP_COMMIT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
- name: Switch flavor for beta release build
|
||||
|
@ -70,7 +70,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
- name: Switch flavor for beta release build
|
||||
|
@ -112,7 +112,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
- name: Switch flavor for beta release build
|
||||
|
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
# Switch flavor to stable when it is release branch
|
||||
|
@ -80,7 +80,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
# Switch flavor to stable when it is release branch
|
||||
|
@ -128,7 +128,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install
|
||||
# Switch flavor to stable when it is release branch
|
||||
|
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install Rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
|
||||
- name: Install Dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
|
|
@ -83,7 +83,7 @@ jobs:
|
|||
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install Rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
|
||||
- name: Install Dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
# Install dependencies
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
# Switch flavor when necessary
|
||||
|
|
|
@ -87,7 +87,7 @@ jobs:
|
|||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
|
|
@ -97,7 +97,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -193,7 +193,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -289,7 +289,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -385,7 +385,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -481,7 +481,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
@ -577,7 +577,7 @@ jobs:
|
|||
path: common/temp/pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
|
||||
- name: Install rush
|
||||
run: npm install -g @microsoft/rush@5.112.2
|
||||
run: npm install -g @microsoft/rush@$(jq -r '.rushVersion' "rush.json")
|
||||
- name: Install dependencies
|
||||
run: rush install --max-install-attempts 3
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "none",
|
||||
"area": "improvement",
|
||||
"workstream": "CI",
|
||||
"comment": "Install specific rush version pulled from rush.json",
|
||||
"packageName": "@azure/communication-react",
|
||||
"email": "2684369+JamesBurnside@users.noreply.github.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
Загрузка…
Ссылка в новой задаче