Build #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm test | |
- run: npm run dist | |
- run: >- | |
git diff --stat --no-color --exit-code | |
|| (echo "dist files at commit ${{github.workflow_sha}} do not match the source code. | |
Please run 'npm run dist' and commit before trying to publish again." && $(exit 1)) |