Create Sustainable-daily-shampoo-soap.md #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/[email protected] | |
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 |