An open API service indexing awesome lists of open source software.

https://github.com/gravity-ui/preview-build-action


https://github.com/gravity-ui/preview-build-action

Last synced: about 2 months ago
JSON representation

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
```