|
9 | 9 | runs-on: ubuntu-latest |
10 | 10 |
|
11 | 11 | steps: |
12 | | - - name: checkout |
13 | | - uses: actions/checkout@v3 |
| 12 | + - name: checkout |
| 13 | + uses: actions/checkout@v3 |
14 | 14 |
|
15 | | - - name: Use Node.js 20.x |
16 | | - uses: actions/setup-node@v3 |
17 | | - with: |
18 | | - node-version: 20.x |
19 | | - |
20 | | - - name: Cache node modules |
21 | | - id: cache-npm |
22 | | - uses: actions/cache@v3 |
23 | | - with: |
24 | | - path: ~/.npm |
25 | | - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
26 | | - restore-keys: | |
27 | | - ${{ runner.os }}-build-${{ env.cache-name }}- |
28 | | - ${{ runner.os }}-build- |
29 | | - ${{ runner.os }}- |
| 15 | + - name: Use Node.js 24.x |
| 16 | + uses: actions/setup-node@v3 |
| 17 | + with: |
| 18 | + node-version: 24.x |
30 | 19 |
|
31 | | - - name: Build & deploy |
32 | | - env: |
33 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
34 | | - REACT_APP_NAME: ${{ secrets.REACT_APP_VERSION }} |
35 | | - SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT}} |
36 | | - REACT_APP_VERSION: ${{ secrets.REACT_APP_VERSION }} |
37 | | - REACT_APP_MAP_API_KEY: ${{ secrets.REACT_APP_MAP_API_KEY }} |
38 | | - REACT_APP_GOOGLE_ANALYTICS_API_KEY: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_API_KEY}} |
39 | | - run: | |
40 | | - git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git |
41 | | - npm i |
42 | | - npm run build |
43 | | - npx gh-pages --branch gh-pages --dist build -u "github-actions-bot <support+actions@github.com>" |
| 20 | + - name: Cache node modules |
| 21 | + id: cache-npm |
| 22 | + uses: actions/cache@v3 |
| 23 | + with: |
| 24 | + path: ~/.npm |
| 25 | + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
| 26 | + restore-keys: | |
| 27 | + ${{ runner.os }}-build-${{ env.cache-name }}- |
| 28 | + ${{ runner.os }}-build- |
| 29 | + ${{ runner.os }}- |
| 30 | +
|
| 31 | + - name: Build & deploy |
| 32 | + env: |
| 33 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 34 | + REACT_APP_NAME: ${{ secrets.REACT_APP_VERSION }} |
| 35 | + SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT}} |
| 36 | + REACT_APP_VERSION: ${{ secrets.REACT_APP_VERSION }} |
| 37 | + REACT_APP_MAP_API_KEY: ${{ secrets.REACT_APP_MAP_API_KEY }} |
| 38 | + REACT_APP_GOOGLE_ANALYTICS_API_KEY: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_API_KEY}} |
| 39 | + run: | |
| 40 | + git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git |
| 41 | + npm i |
| 42 | + npm run build |
| 43 | + npx gh-pages --branch gh-pages --dist build -u "github-actions-bot <support+actions@github.com>" |
0 commit comments