Skip to content

Build 1.0.1

Build 1.0.1 #106

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Nextjs Build & export
on:
push:
branches: [ master ]
pull_request:
branches: [ master, develop]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
node-version: [14.18.2, 16.13.1]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache
uses: actions/cache@v2.1.2
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: node_modules
# An explicit key for restoring and saving the cache
key: nodemodules
# clear some caches and files to avoid yarn issues
- run: sudo rm -rf /usr/share/dotnet
- run: sudo rm -rf /opt/ghc
- run: sudo rm -rf "/usr/local/share/boost"
- run: sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- run: yarn install --network-timeout 1000000000
- run: BUNDLE_ANALYZER_TOKEN=420398ca666ca9cb3e493fd6d55b9a224cdebe12 yarn build
- run: yarn export