From 21c13306a3b39e47447fcd189de60534030dacbc Mon Sep 17 00:00:00 2001 From: Maribeth Moffatt Date: Thu, 8 Jan 2026 10:32:21 -0500 Subject: [PATCH] chore: remove outdated github actions --- .github/workflows/clean_install_examples.yml | 33 --------- .github/workflows/dependabot_update.yml | 68 ------------------- .github/workflows/publish_from_package.yml | 71 -------------------- 3 files changed, 172 deletions(-) delete mode 100644 .github/workflows/clean_install_examples.yml delete mode 100644 .github/workflows/dependabot_update.yml delete mode 100644 .github/workflows/publish_from_package.yml diff --git a/.github/workflows/clean_install_examples.yml b/.github/workflows/clean_install_examples.yml deleted file mode 100644 index 17f67ad38d..0000000000 --- a/.github/workflows/clean_install_examples.yml +++ /dev/null @@ -1,33 +0,0 @@ -# This workflow checks that examples can be installed cleanly. -# It only runs on PRs that affect the `examples/` directory. - -name: Check examples install status - -on: - pull_request: - paths: - - 'examples/**' - -jobs: - install: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 20 - - - name: Check install status - run: | - npm ci - cd examples && npm ci - - - name: Pro-tip in case of failure - if: ${{ failure() }} - run: | - echo "To reproduce locally, you need to replicate the fresh install process and get rid of all node_modules directories. Try running" - echo "npm run clean:node && cd examples && npx lerna clean --yes && npm ci" diff --git a/.github/workflows/dependabot_update.yml b/.github/workflows/dependabot_update.yml deleted file mode 100644 index 24553fd2c1..0000000000 --- a/.github/workflows/dependabot_update.yml +++ /dev/null @@ -1,68 +0,0 @@ -# This workflow runs `lerna bootstrap` after dependabot updates a package-lock file. -# Without it, package-locks become cluttered with incorrect dependencies that -# normally would be removed by lerna. It wouldn't be necessary if we weren't using -# lerna bootstrap. - -name: Clean up after dependabot - -# Triggered when a PR is (re)opened or synchronized -on: - pull_request: - paths: - - 'plugins/**' - -permissions: - pull-requests: write # This action modifies PRs - contents: write # This action adds commits to PRs - -jobs: - update: - runs-on: ubuntu-latest - # Only run on dependabot PRs - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Check out the dependabot PR so commits are added there - - name: Checkout PR - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh pr checkout ${{ github.event.pull_request.number }} - - # This uses a reverse-engineered email for the github actions bot. See - # https://github.com/actions/checkout/issues/13#issuecomment-724415212 - - name: Git identity - run: | - git config --global user.name 'blockly[bot]' - git config --global user.email 'blockly-github-robot@google.com' - - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 20 - - # Install packages - - name: Npm install - run: npm ci - - # Run lerna bootstrap again, this time using `install` instead of `ci` so that - # it will do the magic update we need to remove local dependencies. - - name: Fix package locks - run: npm run clean:node && npm run boot -- --no-ci - - # If any package-locks were updated by lerna bootstrap, commit them - # Using `[dependabot skip]` in the commit message allows dependabot - # to continue making changes to this PR after it is updated - # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/managing-pull-requests-for-dependency-updates#allowing-dependabot-to-rebase-and-force-push-over-extra-commits - - name: Commit changes - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git status - if [[ $(git status | grep '.package-lock.json') ]]; then - git commit -am "chore: update package-locks [dependabot skip]" - git push - else - echo "No changes detected" - fi diff --git a/.github/workflows/publish_from_package.yml b/.github/workflows/publish_from_package.yml deleted file mode 100644 index 34032b4eb3..0000000000 --- a/.github/workflows/publish_from_package.yml +++ /dev/null @@ -1,71 +0,0 @@ -# This workflow can be manually triggered to publish all of the plugins -# that have a version in their package.json that is newer than what -# is available in the npm registry. This is useful if lerna publishing -# failed after a package had its version updated on github but before -# that version was published to npm. - -name: publish unpublished plugins - -on: - workflow_dispatch: # Manually trigger. Colon is required. - -permissions: - contents: write # For checkout and tag. - packages: write # For publish. - -jobs: - publish: - runs-on: ubuntu-latest - # Don't try to publish from a fork of google/blockly-samples. - if: ${{ github.repository_owner == 'google' }} - - # Environment specific to releasing so we can isolate the npm token. - environment: release - - steps: - - name: Checkout - uses: actions/checkout@v3 - # fetch all tags and commits so that lerna can version appropriately - with: - fetch-depth: 0 - ref: 'master' - - # This uses a reverse-engineered email for the github actions bot. See - # https://github.com/actions/checkout/issues/13#issuecomment-724415212 - - name: Git Identity - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email '<41898282+github-actions[bot]@users.noreply.github.com' - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 20 - - - name: Configure npm - run: npm config set //wombat-dressing-room.appspot.com/:_authToken=$NODE_AUTH_TOKEN - env: - NODE_AUTH_TOKEN: ${{ secrets.RELEASE_BACKED_NPM_TOKEN }} - - - name: NPM install - # Use CI so that we don't update dependencies in this step. - run: npm ci - - - name: Build - run: npm run build - - - name: Test - run: npm run test - - - name: Publish from-package - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: cd plugins && npx lerna publish from-package --yes - - update-gh-pages: - name: Update GitHub Pages - # Call the Update gh-pages workflow only if publishing succeeds - needs: [publish] - # Don't try to auto-update if on a fork of google/blockly-samples. - if: ${{ github.repository_owner == 'google' }} - uses: ./.github/workflows/update_gh_pages.yml