Skip to content

v2.44.2

v2.44.2 #225

Workflow file for this run

name: Build
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
name: Checkout
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: >-
echo "::set-output name=dir::$(yarn cache dir)"
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencides
run: >-
yarn install --frozen-lockfile
- run: yarn build
- name: Rename the build
run: mv build client
- name: Zip the build
run: zip -r client.zip client/
- name: Create a release
uses: ncipollo/release-action@v1
with:
artifacts: client.zip
token: ${{ secrets.GITHUB_TOKEN }}