Skip to content

Merge pull request #7 from optimism-java/frontend #9

Merge pull request #7 from optimism-java/frontend

Merge pull request #7 from optimism-java/frontend #9

Workflow file for this run

---
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout tools repo
uses: actions/checkout@v4
- name: Get additional Github env vars # vars from Github env, can not be modified by users
uses: FranzDiebold/github-env-vars-action@v2
- name: Read .nvmrc
shell: bash
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Use Node.js ${{ steps.nvm.outputs.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- name: npm build
shell: bash
run: |
npm install
npm run build
- name: Deploy Preview
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build # The folder the action should deploy.
clean: true
single-commit: true