Create LICENSE (#27) #6
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: "🔧 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 | |