Update to Node 22, image-webpack-loader 8.1.0 #40
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
name: Beta | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
beta-build: | |
environment: PRODUCTION | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Retrieve node version from .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: Setup node ${{ steps.nvm.outputs.NVMRC }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Set outputs | |
id: vars | |
run: echo "::set-output name=sha::$(git rev-parse HEAD)" | |
- name: yarn build | |
run: yarn build | |
env: | |
COMMIT_HASH: ${{ steps.vars.outputs.sha }} | |
- name: Zip standalone build folder | |
run: zip -r dist/web/standalone_pyrus.zip dist/web/ | |
- name: 'Save standalone_pyrus.zip to artifacts' | |
uses: actions/upload-artifact@v1 | |
with: | |
name: 'standalone_pyrus' | |
path: 'dist/web/standalone_pyrus.zip' |