Skip to content

Improve Axios error handling to print response data if it exists and fix dist check action #65

Improve Axios error handling to print response data if it exists and fix dist check action

Improve Axios error handling to print response data if it exists and fix dist check action #65

Workflow file for this run

name: Check that module was built
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
check-dist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build the dist/ directory
run: pnpm build
- name: Check for diff
run: |
if git diff --exit-code dist; then
echo "No changes detected in the dist/ directory."
else
echo "Detected uncommitted changes after building. Please run 'pnpm run build' and commit the changes."
exit 1
fi