|
26 | 26 |
|
27 | 27 | - name: Install dependencies via npm ci |
28 | 28 | if: ${{ !inputs.triggered-by-release }} |
29 | | - run: npm ci |
| 29 | + run: npm ci --ignore-scripts |
30 | 30 |
|
31 | 31 | # For pushes to the release branch, we need to install the dependencies via `npm install` |
32 | 32 | # because the `package-lock.json` is not updated with the new versions of the optional |
|
49 | 49 | node-version-file: package.json |
50 | 50 |
|
51 | 51 | - name: Install dependencies |
52 | | - run: npm ci |
| 52 | + run: npm ci --ignore-scripts |
| 53 | + |
| 54 | + - name: Build |
| 55 | + run: npm run build |
53 | 56 |
|
54 | 57 | - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # 4.6.2 |
55 | 58 | with: |
|
78 | 81 | if: ${{ !inputs.triggered-by-release }} |
79 | 82 | run: npm ci --ignore-scripts |
80 | 83 |
|
| 84 | + # For pushes to the release branch, we need to install the dependencies via `npm install` |
| 85 | + # because the `package-lock.json` is not updated with the new versions of the optional |
| 86 | + # dependencies yet. We also must skip the fallback download via --ignore-scripts. |
| 87 | + - name: Install dependencies via npm install (for pushes to release branch) |
| 88 | + if: ${{ inputs.triggered-by-release }} |
| 89 | + run: npm install --omit=optional --ignore-scripts |
| 90 | + |
81 | 91 | - name: Download build artifact |
82 | 92 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # 5.0.0 |
83 | 93 | with: |
|
87 | 97 | - name: Install CLI |
88 | 98 | run: npm run install-cli |
89 | 99 |
|
90 | | - # For pushes to the release branch, we need to install the dependencies via `npm install` |
91 | | - # because the `package-lock.json` is not updated with the new versions of the optional |
92 | | - # dependencies yet. We also must skip the fallback download via --ignore-scripts. |
93 | | - - name: Install dependencies via npm install (for pushes to release branch) |
94 | | - if: ${{ inputs.triggered-by-release }} |
95 | | - run: npm install --omit=optional --ignore-scripts |
96 | | - |
97 | 100 | # older node versions need an older nft |
98 | 101 | - run: SENTRYCLI_SKIP_DOWNLOAD=1 npm install @vercel/nft@0.22.1 |
99 | 102 | if: matrix.node-version == '10.x' || matrix.node-version == '12.x' |
|
0 commit comments