зеркало из
1
0
Форкнуть 0

Inline rush version in github actions (#4270)

This commit is contained in:
James Burnside 2024-03-15 11:20:52 -07:00 коммит произвёл GitHub
Родитель 497a47ceca
Коммит a1c83c68ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
17 изменённых файлов: 46 добавлений и 37 удалений

2
.github/workflows/alpha-release.yml поставляемый
Просмотреть файл

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

2
.github/workflows/breaking-change-check.yml поставляемый
Просмотреть файл

@ -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') }}

26
.github/workflows/ci.yml поставляемый
Просмотреть файл

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

2
.github/workflows/deploy-azure-webapps.yml поставляемый
Просмотреть файл

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

2
.github/workflows/deploy-storybook.yml поставляемый
Просмотреть файл

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

2
.github/workflows/nightly-cd.yml поставляемый
Просмотреть файл

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

2
.github/workflows/npm-release-publish.yml поставляемый
Просмотреть файл

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

2
.github/workflows/publish-chromatic.yml поставляемый
Просмотреть файл

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

2
.github/workflows/stress-test-ui-tests.yml поставляемый
Просмотреть файл

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

2
.github/workflows/update-api-files.yml поставляемый
Просмотреть файл

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

2
.github/workflows/update-chat-snapshots.yml поставляемый
Просмотреть файл

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

12
.github/workflows/update-snapshots.yml поставляемый
Просмотреть файл

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