diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 261618fe..9e3d21ed 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: jobs: prepare: name: Prepare job - runs-on: ubuntu22.04 + runs-on: ubuntu-22.04 strategy: matrix: node-version: [20.x] @@ -47,7 +47,7 @@ jobs: runs-on: ${{ matrix.distro }} strategy: matrix: - distro: [ubuntu22.04] + distro: [ubuntu-22.04] arch: [aarch64, x64] node-version: [20.x] steps: @@ -69,15 +69,18 @@ jobs: id: build with: arch: ${{ matrix.arch }} - distro: ${{ matrix.distro }} + distro: ubuntu22.04 githubToken: ${{ github.token }} install: | - apt update && apt upgrade -y && apt install -y curl + apt update && apt upgrade -y && apt install -y curl unzip curl -fsSL https://fnm.vercel.app/install | bash fnm install ${{ matrix.node-version }} fnm use ${{ matrix.node-version }} - rm -rf node_modules && npm i + export PATH="/root/.local/share/fnm:$PATH" + eval "`fnm env`" + source /root/.bashrc run: | + npm i npm run build:release -- --only-build - name: Node.js ${{ matrix.node-version }}