question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automate updates with GitHub Actions

See original GitHub issue

Currently the repository is updated by a script that runs locally on @paulirish’s machine. We’d like to move this to a GitHub Actions cronjob workflow. This involves…

  • Removing the dependency on a local chromium/src checkout: #265
  • Removing the dependency on yarn: #267 (not strictly required, but simplifies things)
  • Automating the npm publish process via GitHub Actions (instead of requiring on locale machine configs): #268
  • Adding a new workflow to automate daily updates: #271

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
mathiasbynenscommented, Jul 11, 2022

An upstream CDP change just landed: https://chromium-review.googlesource.com/c/chromium/src/+/3749625 This allowed us to test the actual processing logic through the GitHub Actions workflow for the first time. After a few more tweaks (6d6d51eb93edc54a0d015e59f220a2e9ad9f333, 99db35730cedf76819489b2635a6efa9b08becf8, 6870df846388eeb05bf9c85bc9650f9c56501dfc, and 5cde7486078960bfd85083075c305040985dbef9) we just had our first successful, actually-updating-something run! https://github.com/ChromeDevTools/devtools-protocol/runs/7277823196?check_suite_focus=true#step:3:5 It correctly created the Git tag which correctly triggered the npm publish-on-tag workflow: https://github.com/ChromeDevTools/devtools-protocol/actions/runs/2647956072 and published to npm:

$ npm info devtools-protocol@0.0.1022601

devtools-protocol@0.0.1022601 | BSD-3-Clause | deps: none | versions: 925
The Chrome DevTools Protocol JSON
https://github.com/ChromeDevTools/devtools-protocol#readme

dist
.tarball: https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1022601.tgz
.shasum: 33748f267c2c1c72f010c9f3ba7d6ef981951205
.integrity: sha512-yA+q2/ZAsLjBEIgAUxKlAvbNxvpIcL/H18/7tAJj1cnifevVcAr/gQAL4NaNkwrdfPMsWd8/2tUXv+1zWv95KQ==
.unpackedSize: 2.4 MB

maintainers:
- paulirish <npm@paul.irish>
- mathias <mathias@qiwi.be>
- google-wombot <node-team-npm+wombot@google.com>

dist-tags:
latest: 0.0.1022601

published 2 minutes ago by google-wombot <node-team-npm+wombot@google.com>
1reaction
mathiasbynenscommented, Jul 14, 2022

After some intense GitHub Actions debugging by creating a temporary workflow and repeatedly force-pushing to master like some amateur, I found the root cause. You’re not gonna believe how simple the fix is: a7636c94522c07cf4626dcd64b8993618d0f7192

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto Update · Actions · GitHub Marketplace
autoupdate is a GitHub Action that auto-updates pull requests branches whenever changes land on their destination branch.
Read more >
Automating Dependency Updates with GitHub Actions
Automating Dependency Updates with GitHub Actions · Step 1: Go to GitHub's marketplace and search for WhiteSource or Renovate. Then, click on Renovate...
Read more >
Automating a COVID19 report update and publishing with ...
Github Actions is a fairly recent feature from GitHub which allows you to automate workflows, such as testing code or package deployment.
Read more >
Automate development tasks by using GitHub Actions - Training
Create a container action and have it run in a workflow triggered by a push event to your GitHub repository. Save. Prerequisites. A...
Read more >
Automating a software company with GitHub Actions - PostHog
This is where GitHub Actions come in. With Actions, you can define per-repository workflows which run on robust runner virtual machines.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found