From c60bc38833b1d2c6363593142f145efb6b50bfa1 Mon Sep 17 00:00:00 2001 From: Alexander Wang <3120367+alixander@users.noreply.github.com> Date: Mon, 3 Aug 2026 08:07:15 -0700 Subject: [PATCH] Remove legacy npm nightly job --- .github/workflows/daily.yml | 48 +------------------------------------ 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 2701817e38..e2a874310e 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -1,59 +1,13 @@ name: daily on: workflow_dispatch: - # Scheduled publishing is paused until npm trusted publishing and durable - # package ownership are configured. Keep manual dispatch for verification. + # Keep daily CI available for manual verification while scheduled runs are paused. concurrency: group: ${{ github.workflow }} cancel-in-progress: true jobs: - npm-nightly: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Needed for git history and version tags - - - name: Check for changes - id: check_changes - run: | - if [ $(git rev-list --count --since="24 hours ago" HEAD) -gt 0 ]; then - echo "has_changes=true" >> $GITHUB_OUTPUT - echo "Found changes in the last 24 hours, proceeding to publish d2js nightly" - else - echo "has_changes=false" >> $GITHUB_OUTPUT - echo "No changes in the last 24 hours, skipping d2js nightly publish" - fi - - - uses: actions/setup-go@v4 - if: steps.check_changes.outputs.has_changes == 'true' - with: - go-version-file: ./go.mod - cache: true - - - name: Install binaryen for wasm-opt - if: steps.check_changes.outputs.has_changes == 'true' - run: | - # Install newer version of binaryen from GitHub releases - BINARYEN_VERSION="version_123" - curl -L "https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-x86_64-linux.tar.gz" | tar -xz - sudo cp binaryen-${BINARYEN_VERSION}/bin/* /usr/local/bin/ - sudo cp -r binaryen-${BINARYEN_VERSION}/lib/* /usr/local/lib/ || true - sudo cp -r binaryen-${BINARYEN_VERSION}/include/* /usr/local/include/ || true - wasm-opt --version - - - name: Publish nightly version to NPM - if: steps.check_changes.outputs.has_changes == 'true' - run: | - export NPM_VERSION=nightly - COLOR=1 ./make.sh js - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} - DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} ci: - needs: [npm-nightly] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3