Refactor deprecated code. Fix linter. #27
Workflow file for this run
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: Create release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
create_release: | |
name: build / push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js 22 (LTS) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
- name: Build the artifacts | |
working-directory: client | |
run: | | |
corepack enable | |
yarn install | |
yarn build | |
- name: Create web client artifacts | |
working-directory: client/dist | |
run: | | |
tar -czf ../../client-assets.tar.gz * | |
zip -r ../../client-assets.zip * | |
- name: Determine if prerelease | |
run: | | |
TAG="${GITHUB_REF##*/}" | |
if [[ "$TAG" == *-* ]]; then | |
echo "PRERELEASE=true" >> $GITHUB_ENV | |
else | |
echo "PRERELEASE=false" >> $GITHUB_ENV | |
fi | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: ${{ env.PRERELEASE }} | |
files: | | |
client-assets.tar.gz | |
client-assets.zip |