Skip to content

Commit a58c717

Browse files
refactor(ci): update github action to retry build if sencha npm errors again
1 parent cf09980 commit a58c717

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/create.release.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,16 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
cache: 'npm'
21-
- run: npm ci
22-
- run: npm run build --if-present
21+
22+
- uses: nick-fields/retry@v2
23+
with:
24+
max_attempts: 10
25+
timeout_minutes: 10
26+
command: |
27+
npm config set @sencha:registry https://npm.sencha.com/
28+
npm config set //npm.sencha.com/:_authToken=${{ secrets.SENCHA_ACCESS_TOKEN }}
29+
npm ci --save-dev
30+
npm run build --if-present
2331
2432
build:
2533
needs: test

0 commit comments

Comments
 (0)