docs: remove name
field in package.json
file (#181)
#51
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: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-package: | |
name: Build Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: latest | |
- name: Cache Dependencies | |
id: cache-npm | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: node-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: Install Dependencies | |
if: steps.cache-npm.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Build Package | |
run: | | |
npm run build | |
git diff --exit-code HEAD |