Skip to content

Commit ee1dc8f

Browse files
committed
chore: fix gh action to publish to npm
1 parent 973000f commit ee1dc8f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish-package.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
1+
# This workflow will run tests using node and then publish a package to npm registry when a release is created
22
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33

4-
name: Publish to GitHub Packages on new release
4+
name: Publish to npm registry on new release
55

66
on:
77
workflow_dispatch:
@@ -19,7 +19,7 @@ jobs:
1919
- run: npm ci
2020
- run: npm test
2121

22-
publish-gpr:
22+
publish-npm:
2323
needs: build
2424
runs-on: ubuntu-latest
2525
permissions:
@@ -30,9 +30,8 @@ jobs:
3030
- uses: actions/setup-node@v3
3131
with:
3232
node-version: 20
33-
registry-url: https://npm.pkg.github.com/
34-
scope: '@gitcommitshow'
33+
registry-url: 'https://registry.npmjs.org'
3534
- run: npm ci
3635
- run: npm publish
3736
env:
38-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

ResilientOperation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ class ResilientOperation {
358358
_shouldRetry(err) {
359359
if (err.name === 'AbortError') return false;
360360

361+
if (err.name === 'TimeoutError') return true;
362+
361363
if (err.message === 'Operation timed out') return true;
362364

363365
if (err.message === 'Circuit breaker is open') return false;

0 commit comments

Comments
 (0)