diff --git a/.github/workflows/sync.sh b/.github/workflows/sync.sh index 8de55df..bd2b7c2 100644 --- a/.github/workflows/sync.sh +++ b/.github/workflows/sync.sh @@ -2,8 +2,11 @@ mkdir -p $RUNNER_TEMP/dist cp -a * $RUNNER_TEMP/dist cp -a .github $RUNNER_TEMP/dist cp -a .vscode $RUNNER_TEMP/dist -cp -a .yarn $RUNNER_TEMP/dist cp .* $RUNNER_TEMP/dist + +mkdir $RUNNER_TEMP/dist/.yarn +cp -a .yarn/releases $RUNNER_TEMP/dist/.yarn + mv $RUNNER_TEMP/dist dist cd dist diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 19dabf3..8b1ac1a 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -19,6 +19,11 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ + - name: Install dependencies + run: |- + yarn --no-immutable + rm -rf node_modules + - name: Sync files run: bash .github/workflows/sync.sh