https://github.com/gravity-ui/preview-build-action
https://github.com/gravity-ui/preview-build-action
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gravity-ui/preview-build-action
- Owner: gravity-ui
- License: mit
- Created: 2022-08-23T11:52:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-05T22:16:17.000Z (about 1 year ago)
- Last Synced: 2025-06-17T10:47:23.464Z (about 1 year ago)
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# preview-build-action
A GitHub action that builds Storybook's static files and stores them into workflow artifacts.
It's the first action of sequence "Build -> Deploy".
## Inputs
- `pr` (optional) - PR number. Default: action grabs it from the workflow event.
- `node-version` (optional) - Node.js version used to build static files.
- `node-version-file`, (optional) - which file containing node version used to build static files. If node-version and node-version-file are both provided the action will use version from node-version.
## Example
```yaml
name: Preview Build
on:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: gravity-ui/preview-build-action@v1
```