Skip to content

Update WEBCI.yaml file and add new workflows for StoryPages, StoryDoc… #36

Update WEBCI.yaml file and add new workflows for StoryPages, StoryDoc…

Update WEBCI.yaml file and add new workflows for StoryPages, StoryDoc… #36

Workflow file for this run

name: CI Scripts 🧾 for Web Branches ✔
on:
push:
branches:
- web-dev
pull_request:
branches:
- web
- web-dev
jobs:
chromatic:
name: Publish Storybook to Chromatic 📚
env:
GH_PFP_TOKEN: ${{ secrets.GH_PFP_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '20.11.0'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: cd noplus-web && npm i
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: noplus-web
StoryPages:
name: Publish Storybook to GitHub Pages 📚
runs-on: ubuntu-latest
steps:
- name: Checkout code 📦
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node 📦
uses: actions/setup-node@v2
with:
node-version: '20.11.0'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies 📦
run: cd noplus-web && npm i
- name: Build Storybook 📚
run: cd noplus-web && npm run build-storybook
- name: Send Build to Upload Authority
uses: actions/upload-artifact@v2
with:
name: storybook
path: noplus-web/storybook-static
StoryDocs:
name: Build StoryDocs 📚
runs-on: ubuntu-latest
steps:
- name: Checkout code 📦
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node 📦
uses: actions/setup-node@v2
with:
node-version: '20.11.0'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies 📦
run: cd noplus-web && npm i
- name: Build StoryDocs 📚
run: cd noplus-web && npm run build-storydocs
- name: Send Build to Upload Authority
uses: actions/upload-artifact@v2
with:
name: storydocs
path: noplus-web/storydocs
upstream:
name: Upload Authority 📦
runs-on: ubuntu-latest
needs: [StoryPages, StoryDocs]
steps:
- name: Checkout code 📦
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Storybook 📚
uses: actions/download-artifact@v2
with:
name: storybook
path: docs/storybook
- name: Download StoryDocs 📚
uses: actions/download-artifact@v2
with:
name: storydocs
path: noplus-web/src/app/docs/components/storydocs
- name: Activate Vercel Deployment
run: echo '{"github": {"enabled": true}}' > vercel.json

Check failure on line 118 in .github/workflows/WEBCI.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/WEBCI.yaml

Invalid workflow file

You have an error in your yaml syntax on line 118
- name: Commit and Push to Current Branch 📦
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}