feat: improve whats included in the package publish #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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: Release lib | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.15.0' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn --frozen-lockfile --prefer-offline | |
- name: Prettier check, Eslint check, Typescript check | |
run: yarn code-quality:check | |
- name: Run tests | |
run: yarn test | |
- name: Generate coverage badges | |
run: yarn generate:coverage-badges | |
- name: Prepare build | |
run: yarn build | |
- name: Release to NPM | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PUBLISHING_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn release |