Skip to content

Bump typescript from 5.6.2 to 5.6.3 #63

Bump typescript from 5.6.2 to 5.6.3

Bump typescript from 5.6.2 to 5.6.3 #63

Workflow file for this run

name: check-dist
on:
pull_request:
branches: [ main ]
paths:
- 'package.json'
- 'package-lock.json'
- 'src/**'
workflow_dispatch:
permissions:
contents: read
jobs:
check-dist:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: '20.x'
- name: Get npm cache directory
id: npm-cache-dir
shell: pwsh
run: echo "dir=$(npm config get cache)" >> ${env:GITHUB_OUTPUT}
- name: Setup npm cache
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install packages
run: npm ci
- name: Rebuild the dist directory
run: npm run check-dist
- name: Compare the expected and actual dist directories
id: diff
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "::error::Detected uncommitted changes to dist."
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
- name: Upload generated dist
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
if: failure() && steps.diff.conclusion == 'failure'
with:
name: dist
path: dist/