Skip to content

Commit

Permalink
Fix check-dist workflow (#172)
Browse files Browse the repository at this point in the history
- Updated package.json to be more consistent with `gradle/actions` repo
- Updated 'check-dist' workflow to be more consistent with `gradle/actions` repo
- Check-dist now actually checks! Fixes #171
  • Loading branch information
bigdaz authored Jan 31, 2024
1 parent 1ff5a18 commit 2572bdd
Show file tree
Hide file tree
Showing 3 changed files with 535 additions and 539 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set Node.js 20.x
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: Validate package-lock
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm yarn --validate-https

- name: Install dependencies
run: npm ci

- name: Rebuild the dist/ directory
run: npm run build
node-version: 20
- name: Build
run: |
npm -v
node -v
npm install
npm run build
- name: Compare the expected and actual dist/ directories
run: |
Expand Down
Loading

0 comments on commit 2572bdd

Please sign in to comment.