chore: modernize CI/release workflows and expand README#23
Open
dsherret wants to merge 3 commits into
Open
Conversation
Restructure GitHub Actions to match the modern pattern used in sibling plugins (json/jupyter/mago/biome): - ci.yml: build/test + GitHub release only (cargo + npm publish removed) - Bump actions/checkout to v6 - Bump actions/setup-node to v6 (node 24.x) - Bump denoland/setup-deno to v2 (deno-version: v2.x) - Replace deprecated `::set-output` with `$GITHUB_OUTPUT` - Pin softprops/action-gh-release to a sha - publish.yml (new): cargo + npm publish on tag using OIDC trusted publishing (rust-lang/crates-io-auth-action@v1, no static tokens) - release.yml: - Bump actions/checkout to v6 - Bump denoland/setup-deno to v2 - Replace dtolnay/rust-toolchain with dsherret/rust-toolchain-file@v1 - Use jsr:@dprint/automation@0.10.3/tasks/publish-release - deployment/npm/setup.js: support a `sync-version` arg that reads the Cargo.toml version (used by the new publish.yml) - README: add an Install section covering both `dprint add dockerfile` and `dprint add npm:@dprint/dockerfile`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings this repo's GitHub Actions in line with the modern pattern used by sibling plugins (json/jupyter/mago/biome) and expands the README install section.
Workflows
cargo publishandnpm publishmoved out topublish.yml.actions/checkout@v6,actions/setup-node@v6(node 24.x),denoland/setup-deno@v2(deno-version: v2.x).::set-outputwith$GITHUB_OUTPUT.softprops/action-gh-releasesha.rust-lang/crates-io-auth-action@v1— no more staticCRATES_TOKEN/NPM_TOKENsecrets needed once trusted publishing is configured on crates.io / npm.actions/checkout@v6,denoland/setup-deno@v2.dtolnay/rust-toolchain@stablewithdsherret/rust-toolchain-file@v1.jsr:@dprint/automation@0.10.3/tasks/publish-release(wasraw.githubusercontent.com/dprint/automation/0.5.1/...).setup.js
deployment/npm/setup.jsnow supports async-versionargument that reads the version out ofCargo.toml. The newpublish.ymluses it.README
dprint add dockerfileanddprint add npm:@dprint/dockerfile.Test plan
publish.ymlcan authenticate via OIDC. Same for npm (@dprint/dockerfile).