ci: fix setup-node for npm publish #55
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: ci | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧 | |
uses: ./.github/workflows/setup-node | |
- name: Generate dist | |
run: npm run build | |
test: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧 | |
uses: ./.github/workflows/setup-node | |
- name: Run tests | |
run: npm run test -- --coverage | |
lint: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧 | |
uses: ./.github/workflows/setup-node | |
- name: Run linter | |
run: npm run lint |