style: run prettier #14
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: volta-cli/action@v1 | |
- run: npm ci | |
- name: Dependencies audit | |
run: npm audit --audit-level=moderate --only=prod | |
- name: Build | |
run: npm run build | |
- name: Format check | |
run: npm run format:check | |
- name: Lint check | |
run: npm run lint:check | |
- name: Spell check | |
run: npm run spell:check | |
- name: Test | |
run: npm run test | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm run semantic-release |