From c04160b07a57ee8d144e064e1ae85cd385c4f5a8 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Thu, 28 Mar 2024 20:24:38 +0100 Subject: [PATCH] chore: fix build issues # Conflicts: # packages/@interactjs/symbol-tree/lib/SymbolTree.ts --- .github/workflows/workflow.yml | 2 +- scripts/bin/release.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 201f228f9..3297fcbb8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 registry-url: https://registry.npmjs.org/ diff --git a/scripts/bin/release.js b/scripts/bin/release.js index ae6f61206..4b5e79117 100644 --- a/scripts/bin/release.js +++ b/scripts/bin/release.js @@ -1,7 +1,6 @@ const fs = require('fs').promises const path = require('path') -const del = require('del') const shell = require('shelljs') const { getPackages, isPro, registryUrl, errorExit } = require('../utils') @@ -141,7 +140,8 @@ async function pushAndPublish() { pkg.gitHead = gitHead }) - if (isPro) await del('packages/**/*.map') + const { deleteAsync } = await import('del') + if (isPro) await deleteAsync('packages/**/*.map') const npmPublishCommand = 'npm publish' + (NPM_TAG ? ` --tag ${NPM_TAG}` : '') const packagesToPublish = isPro ? packages.filter((p) => /@interactjs\//.test(p)) : packages