|
40 | 40 | else
|
41 | 41 | echo "matrix=[\"latest\"]" >> $GITHUB_OUTPUT
|
42 | 42 | fi
|
| 43 | +
|
43 | 44 | e2e:
|
44 | 45 | needs: setup
|
45 | 46 | runs-on: ubuntu-latest
|
@@ -68,14 +69,13 @@ jobs:
|
68 | 69 | deno-version: v1.37.0
|
69 | 70 | - name: 'Install dependencies'
|
70 | 71 | run: npm ci
|
71 |
| - - name: 'Netlify Login' |
| 72 | + - name: 'Prepare Netlify CLI' |
72 | 73 | env:
|
73 | 74 | NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
74 | 75 | run: |
|
75 |
| - # TODO(serhalp) Unpin version once |
76 |
| - # https://netlify.slack.com/archives/C07686YAY13/p1718139257978049 is resolved. |
77 |
| - npm i -g netlify-cli@17.26.0 |
78 |
| - netlify login |
| 76 | + # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use |
| 77 | + npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" |
| 78 | + npx netlify login |
79 | 79 | - name: Get installed Playwright version
|
80 | 80 | id: playwright-version
|
81 | 81 | run: echo "version=$(npm view @playwright/test version)" >> $GITHUB_OUTPUT
|
@@ -204,14 +204,13 @@ jobs:
|
204 | 204 | run: npm ci
|
205 | 205 | - name: 'Build'
|
206 | 206 | run: npm run build
|
207 |
| - - name: 'Netlify Login' |
| 207 | + - name: 'Prepare Netlify CLI' |
208 | 208 | env:
|
209 | 209 | NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
210 | 210 | run: |
|
211 |
| - # TODO(serhalp) Unpin version once |
212 |
| - # https://netlify.slack.com/archives/C07686YAY13/p1718139257978049 is resolved. |
213 |
| - npm i -g netlify-cli@17.26.0 |
214 |
| - netlify login |
| 211 | + # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use |
| 212 | + npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")" |
| 213 | + npx netlify login |
215 | 214 | - name: Resolve Next.js version
|
216 | 215 | id: resolve-next-version
|
217 | 216 | shell: bash
|
|
0 commit comments