refactor: remove unnecessary scripts #23
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: CD | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.17.0' | |
cache: 'yarn' | |
cache-dependency-path: | | |
.yarn | |
yarn.lock | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn nx run-many --target=lint | |
- name: Type check | |
run: yarn nx run-many --target=type-check | |
- name: Test | |
run: yarn nx run-many --target=test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
- name: Build | |
run: | | |
yarn nx run-many --target=build --projects=playground | |
- name: Deploy Playground to Github Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: chore/gh-pages | |
target-folder: . | |
folder: apps/playground/dist | |
token: ${{ secrets.GITHUB_TOKEN }} |