Merge pull request #2455 from alixander/debug-nightly

Debug nightly
This commit is contained in:
Alexander Wang 2025-03-24 10:59:15 -07:00 committed by GitHub
commit 0e443788d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 2 deletions

View file

@ -34,7 +34,12 @@ jobs:
- name: Publish nightly version to NPM
if: steps.check_changes.outputs.has_changes == 'true'
run: COLOR=1 NPM_VERSION=nightly ./make.sh js
run: |
echo "Debug: About to set NPM_VERSION=nightly"
export NPM_VERSION=nightly
env | grep NPM_ || echo "No NPM variables found!"
echo "Debug: Running make.sh with NPM_VERSION=$NPM_VERSION"
COLOR=1 ./make.sh js
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}

View file

@ -23,4 +23,5 @@ race: fmt
prefix "$@" ./ci/test.sh --race ./...
.PHONY: js
js: gen
cd d2js/js && prefix "$@" ./make.sh all
echo "DEBUG: Root Makefile NPM_VERSION=${NPM_VERSION:-not set}"
cd d2js/js && NPM_VERSION="${NPM_VERSION}" prefix "$@" ./make.sh all

View file

@ -18,6 +18,7 @@ fi
cd d2js/js
sh_c bun build.js
echo "DEBUG: build.sh received NPM_VERSION=${NPM_VERSION:-not set}"
if [ -n "${NPM_VERSION:-}" ]; then
cp package.json package.json.bak
trap 'rm -f .npmrc; mv package.json.bak package.json' EXIT

View file

@ -9,6 +9,7 @@ fi
PATH="$(cd -- "$(dirname "$0")" && pwd)/../../ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"
echo "DEBUG: d2js/js/make.sh received NPM_VERSION=${NPM_VERSION:-not set}"
if ! command -v bun >/dev/null 2>&1; then
if [ -n "${CI-}" ]; then
echo "Bun is not installed. Installing Bun..."