Bump actions/checkout from 3 to 4 (#53) #16
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: Check Packaging | |
env: | |
# See: https://github.com/actions/setup-node/#readme | |
NODE_VERSION: 16.x | |
on: | |
push: | |
paths: | |
- ".github/workflows/check-packaging-ncc-typescript-npm.yml" | |
- "lerna.json" | |
- "package.json" | |
- "package-lock.json" | |
- "tsconfig.json" | |
- "**.[jt]sx?" | |
pull_request: | |
paths: | |
- ".github/workflows/check-packaging-ncc-typescript-npm.yml" | |
- "lerna.json" | |
- "package.json" | |
- "package-lock.json" | |
- "tsconfig.json" | |
- "**.[jt]sx?" | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
check-packaging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install dependencies | |
run: npm install | |
- name: Build project | |
run: | | |
npm run-script build | |
npm run-script pack | |
- name: Check packaging | |
# Ignoring CR because ncc's output has a mixture of line endings, while the repository should only contain | |
# Unix-style EOL. | |
run: git diff --ignore-cr-at-eol --color --exit-code dist |