Skip to content

Commit

Permalink
update e2e for public release
Browse files Browse the repository at this point in the history
  • Loading branch information
shwet2407 committed Nov 13, 2024
1 parent 016a40e commit a294f33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pr_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
with:
node-version: '20'
- name: Install project dependencies
run: npm ci
run: |
echo "Starting npm ci with a 10-minute timeout"
for i in 1 2 3; do # Retry logic, retry 3 times
timeout 10m npm ci --verbose && break || echo "npm ci failed, retrying ($i/3)..."
done
- name: Run linter
run: npm run lint:fix
- name: Run Tests
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/~reusable_public_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
run: |
echo "Starting npm ci with a 10-minute timeout"
for i in 1 2 3; do # Retry logic, retry 3 times
timeout 10m npm ci --verbose && break || echo "npm ci failed, retrying ($i/3)..."
done
- name: Slack Started Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/~reusable_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
run: |
echo "Starting npm ci with a 10-minute timeout"
for i in 1 2 3; do # Retry logic, retry 3 times
timeout 10m npm ci --verbose && break || echo "npm ci failed, retrying ($i/3)..."
done
- name: Publish Version
run: npm run publish:${{ inputs.TAG }} ${{ inputs.VERSION }}
env:
Expand Down

0 comments on commit a294f33

Please sign in to comment.