build(deps): bump rollup from 2.75.5 to 2.79.2 #569
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: Lint, Build, Test | |
on: push | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Setup dependencies | |
run: npm i -g eslint prettier && npm i | |
- name: Lint | |
run: npm run lint | |
Build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Setup dependencies | |
run: npm i | |
- name: Build | |
run: npm run build | |
Test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Setup dependencies | |
run: npm i | |
- name: Test | |
run: npm run test | |
publish: | |
name: Publish | |
needs: test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Setup dependencies | |
run: npm i --omit=peer | |
- name: Build | |
run: npm run build | |
- name: Publish | |
uses: mikeal/merge-release@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |