[Fork] Add missing props noResults, noMore, error & a new one errorButton #58
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: Test & Publish | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x] | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.3 | |
with: | |
persist-credentials: false | |
- name: Setup 🔧 | |
uses: actions/setup-node@v2.1.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install ♻ | |
run: npm install | |
- name: Lint 👓 | |
run: npm run lint | |
- name: Test ✅ | |
run: npm run test | |
publish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.3 | |
with: | |
persist-credentials: false | |
- name: Check Version Changes ↗ | |
uses: EndBug/version-check@v1.6.0 | |
id: check | |
- name: Setup 🔧 | |
if: steps.check.outputs.changed == 'true' | |
uses: actions/setup-node@v2.1.2 | |
with: | |
node-version: 12 | |
registry-url: https://registry.npmjs.org | |
- name: Install ♻ | |
if: steps.check.outputs.changed == 'true' | |
run: npm install | |
- name: Publish 🚀 | |
if: steps.check.outputs.changed == 'true' | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |