Skip to content

Create CODE_OF_CONDUCT.md (#26) #5

Create CODE_OF_CONDUCT.md (#26)

Create CODE_OF_CONDUCT.md (#26) #5

name: "🔧 Deploy to GitHub"
on:
# When you push changes: only affected projects will be build/deploy
push:
branches:
- main
- v2.0.x
# When you manually trigger: all projects will be build/deploy
workflow_dispatch:
concurrency: "deploy"
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "📦 Install dependencies"
uses: reactgular/cache@main
with:
mode: "install"
lint:
runs-on: ubuntu-latest
needs: [ install ]
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "💽 Restore node_modules cache"
uses: reactgular/cache@main
with:
mode: "restore"
- name: "🔨 Lint"
run: yarn lint
test:
runs-on: ubuntu-latest
needs: [ install ]
if: false
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "💽 Restore node_modules cache"
uses: reactgular/cache@main
with:
mode: "restore"
- name: "🔨 Test"
run: ${{ env.NX }} affected -t test
storybooks:
runs-on: ubuntu-latest
needs: [ install ]
if: false
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "💽 Restore node_modules cache"
uses: reactgular/cache@main
with:
mode: "restore"
- name: "🔨 Build storybooks"
run: yarn build-storybook
build:
runs-on: ubuntu-latest
#needs: [ lint, test, storybooks ]
needs: [ lint ]
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "💽 Restore node_modules cache"
uses: reactgular/cache@main
with:
mode: "restore"
- name: "🔨 Build projects"
run: yarn build