Skip to content

Workflow file for this run

name: Build Cards Project
on:
push:
paths:
- 'packages/cards/**'
pull_request:
paths:
- 'packages/cards/**'
jobs:
setup:
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-keys.outputs.key }}
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: yarn install
build-shared:

Check failure on line 28 in .github/workflows/cards.yml

View workflow run for this annotation

GitHub Actions / Build Cards Project

Invalid workflow file

The workflow is not valid. .github/workflows/cards.yml (Line: 28, Col: 1): Unexpected value 'build-shared'
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Root Dependencies
run: yarn install
- name: Build Shared
run: yarn workspace shared build
test-cards:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Root Dependencies
run: yarn install
- name: Test Cards
run: yarn workspace cards test
build-cards:
needs: [setup, build-shared, test-cards]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Cards
run: yarn workspace cards build
- name: Copy files to a temporary directory
run: |
mkdir cards
cp -R packages/cards/dist/* cards/
deploy:
needs: build-cards
runs-on: ubuntu-latest
steps:
- name: Deploy to Server
uses: appleboy/scp-action@master
with:
host: 138.68.115.124
username: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: 'cards/*'
target: '/usr/share/nginx/html/microfrontend/apps'