This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
feat: clean up dependencies and the project overall #60
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: CI/CD | |
on: push | |
jobs: | |
automation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
always-auth: true | |
node-version: '12.x' | |
registry-url: //npm.pkg.github.com/ | |
- name: Get yarn cache directory | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: yarn-${{ hashFiles('yarn.lock') }} | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Format | |
run: yarn format:fix | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn test:coverage | |
- name: Build | |
run: yarn build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn release |