ci: check dist is in sync with src #122
Workflow file for this run
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: Node.js CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: Lint / Build / Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout Source Files | |
uses: actions/checkout@v2 | |
- name: Use Node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Lint Source Files | |
run: pnpm run lint | |
- name: Verify TypeScript Build | |
run: pnpm run build | |
- name: Verify Distribution Build | |
run: pnpm run package | |
- name: Run Tests | |
run: pnpm run test | |
- name: Check dist is up-to-date | |
run: git diff --exit-code HEAD |