Code Monkey home page Code Monkey logo

setup-biome's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

setup-biome's Issues

Install version that is installed in `package.json`

This could be a killer feature.

If we were able to install the same version used in the package.json (correct version and architecture), we might be able to install biome binary directly, and we wouldn't need to set up anything else. This is because we don't depend on any runtime.

This could save ton of time in CI times.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency lefthook to v1.6.14

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bun
package.json
  • @actions/core 1.10.1
  • @actions/tool-cache 2.0.1
  • @octokit/auth-action 5.1.1
  • @octokit/request-error 6.1.1
  • @octokit/rest 20.1.1
  • semver 7.6.2
  • ts-dedent 2.2.0
  • yaml 2.4.2
  • @biomejs/biome 1.7.3
  • @octokit/types 13.5.0
  • @types/bun 1.1.2
  • @types/semver 7.5.8
  • lefthook 1.6.12
  • typescript 5.4.5
github-actions
.github/workflows/integrate.yaml
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • oven-sh/setup-bun v1@8f24390df009a496891208e5e36b8a1de1f45135
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • oven-sh/setup-bun v1@8f24390df009a496891208e5e36b8a1de1f45135
.github/workflows/test.yaml
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
.github/workflows/update-readme-package-version.yaml
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • oven-sh/setup-bun v1@8f24390df009a496891208e5e36b8a1de1f45135
  • peter-evans/create-pull-request v6@6d6857d36972b65feb161a90e484f2984215f83e

  • Check this box to trigger a request for Renovate to run again on this repository

Automatically detect biome version from package manager lockfile

The setup action currently defaults to downloading the latest version of Biome when the version is not specified.

We'd like to explore the possibility of extracting the biome version from the package manager's lock file to setup the same version of Biome as specified in the project's dependencies.

Resolution order

Here's the desired resolution order.

graph LR;
    A[specified version]-->B;
    B[version from lockfile]-->C;
    C[fallback to latest];

Package managers

We'd like to support the following package managers.

  • npm (package-lock.json)
  • pnpm (package-lock.yaml)
  • yarn (yarn.lock)
  • bun (bun.lockb)

References

Read version from `bun.lockb` binary file

The action currently relies on the user configuring Bun to output a human-readable yarn.lock file alongside its native bun.lockb binary file, which requires additional steps.

We'd like to explore the possibility of reading Bun's lockfile to extract the version of Biome, without having to install Bun.

Inconsistent tag versions?

Considering:
Screenshot 2024-01-15 at 9 37 52 AM

..it seems that the semver tagging is somewhat inconsistent. I would assume that all the v2 tags (sans v2.0.1) should point to the same commit (7702017)?

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (semanticCommitTypeAll(chore))

Suggestion: run with Bun

Bun is very fast, and it might speed this action up. It also requires no transpilation or bundling, it can run the ts files directly, so it should also help simplify this repo greatly. If building is still faster (which I doubt), then bun can do that too in a single command. Finally, given that the biome npm package is a thin wrapper over the Rust binary, it's unlikely to break. Because of this, I would suggest looking into this option for better speed :)

(I have not measured anything so I might be wrong!)

Edit: another advantage of this approach is that you'll be able to extract the version from bun's lockfile, since it'll be already installed.

Setup Renovate

We've started using Renovate in the other repositories, let's replace dependabot with Renovate here too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.