build(deps-dev): bump prettier from 2.3.0 to 3.4.1 #1258
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 ci | |
- 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 ci | |
- name: build | |
run: npm run build | |
test: | |
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 ci | |
- 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 ci --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 }} |