Skip to content

chore: modernize CI/release workflows and expand README#23

Open
dsherret wants to merge 3 commits into
mainfrom
chore/modernize-ci-and-readme
Open

chore: modernize CI/release workflows and expand README#23
dsherret wants to merge 3 commits into
mainfrom
chore/modernize-ci-and-readme

Conversation

@dsherret
Copy link
Copy Markdown
Member

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

  • ci.yml: now build/test + GitHub release only. cargo publish and npm publish moved out to publish.yml.
    • actions/checkout@v6, actions/setup-node@v6 (node 24.x), denoland/setup-deno@v2 (deno-version: v2.x).
    • Replace deprecated ::set-output with $GITHUB_OUTPUT.
    • Keep the pinned softprops/action-gh-release sha.
  • publish.yml (new): cargo + npm publish on tag using OIDC trusted publishing via rust-lang/crates-io-auth-action@v1 — no more static CRATES_TOKEN/NPM_TOKEN secrets needed once trusted publishing is configured on crates.io / npm.
  • release.yml:
    • actions/checkout@v6, denoland/setup-deno@v2.
    • Replace dtolnay/rust-toolchain@stable with dsherret/rust-toolchain-file@v1.
    • Use jsr:@dprint/automation@0.10.3/tasks/publish-release (was raw.githubusercontent.com/dprint/automation/0.5.1/...).

setup.js

  • deployment/npm/setup.js now supports a sync-version argument that reads the version out of Cargo.toml. The new publish.yml uses it.

README

  • Add an Install section covering both dprint add dockerfile and dprint add npm:@dprint/dockerfile.

Test plan

  • CI passes on this branch.
  • Before the next release, ensure crates.io trusted publishing is configured for this repo so publish.yml can authenticate via OIDC. Same for npm (@dprint/dockerfile).

dsherret added 3 commits May 23, 2026 16:20
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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant