From cb3bd218ef7a589ce3dd0e3c780382ca9db79ec2 Mon Sep 17 00:00:00 2001 From: xBoyMinemc <86919167+xBoyMinemc@users.noreply.github.com> Date: Mon, 4 Nov 2024 18:21:58 +0800 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 03654e6..bd6c7a3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,21 +20,16 @@ jobs: - name: Install dependencies run: npm i + - - name: Remove nested node_modules directory - run: | - # Check if the directory exists and remove it - if [ -d "node_modules/@minecraft/server-gametest/node_modules" ]; then - rm -rf node_modules/@minecraft/server-gametest/node_modules - fi - - if [ -d "node_modules/@minecraft/server-ui/node_modules" ]; then - rm -rf node_modules/@minecraft/server-ui/node_modules - fi - + - name: tsc build + run: tsc --skipLibCheck + + - name: webpack build + run: webpack - name: Build project - run: npm run build + run: node packer.js - name: Release uses: softprops/action-gh-release@v1