build(deps): bump axios from 0.27.2 to 1.6.7 #1451
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: lint, build, and test | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
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:ts | |
- name: check formatting | |
run: npm run prettier | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
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: run tests | |
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 }} |