From 4fb5cf6d2de7a566dfa6a991e5c8357198703bf1 Mon Sep 17 00:00:00 2001 From: cvetty Date: Fri, 28 Jun 2024 07:31:09 +0300 Subject: [PATCH] Fix CICD --- .github/workflows/pre-release.yml | 6 +++--- .github/workflows/release.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 4e7e142..3fac79e 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -20,7 +20,7 @@ on: - no update env: - NODE_VERSION: "18.15.0" + NODE_VERSION: "18.20.3" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -31,7 +31,7 @@ permissions: jobs: prerelease: - name: Draft Github Release + name: Create prerelease runs-on: ubuntu-20.04 outputs: release_id: ${{ steps.update_release.outputs.result }} @@ -167,7 +167,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, release_id: ${{ env.RELEASE_ID }}, - data: await fs.readFile('./npm-dist.zip') + data: await fs.readFile('./distribution-package.zip') }); env: RELEASE_ID: ${{ needs.prerelease.outputs.release_id }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1875d64..81ea166 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: types: [released] env: - NODE_VERSION: "18.15.0" + NODE_VERSION: "18.20.3" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -15,8 +15,8 @@ permissions: contents: write jobs: - check: - name: check + release: + name: Release runs-on: ubuntu-20.04 steps: - name: Checkout the repo @@ -40,8 +40,8 @@ jobs: env: ASSETS: ${{ toJson(github.event.release.assets) }} - - name: Cd to the UI - run: cd krait-ui + - name: Create separate directory + run: mkdir production-build && cd production-build - name: Download distribution build run: curl -O $DOWNLOAD_URL