Skip to content

Commit

Permalink
chore(build): fix preview build
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v committed Jul 28, 2023
1 parent 0ecd7eb commit efbabdb
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/pr-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,32 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: yandex-cloud/ui-preview-build-action@main
with:
node-version: 18
env:
TS_NODE_PROJECT: .storybook/tsconfig.json
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Packages
run: npm ci
shell: bash
- name: Build Storybook
run: npm run storybook:build
shell: bash
- name: Create Static Artifact
uses: actions/upload-artifact@v2
with:
name: static
path: ./storybook-static
- name: Save PR ID
run: |
pr="${{ github.event.pull_request.number }}"
echo $pr > ./pr-id.txt
shell: bash
- name: Create PR Artifact
uses: actions/upload-artifact@v2
with:
name: pr
path: ./pr-id.txt

0 comments on commit efbabdb

Please sign in to comment.