Skip to content

Merge pull request #29 from JnMProjects/web-dev #1

Merge pull request #29 from JnMProjects/web-dev

Merge pull request #29 from JnMProjects/web-dev #1

Workflow file for this run

name: CD Scripts 🧾 for Web Branches βœ”
on:
push:
branches:
- web
jobs:
StoryBook:
name: Build StoryBook πŸ“š
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/storybook-static
upstream:
name: Upload Authority πŸ“¦
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
pull-requests: write
needs: [StoryBook, 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/public/storydocs
- name: Upload Authority πŸ“¦
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Update from workflow'