Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
ZIP_CHECKSUM_X86_64_UNKNOWN_LINUX_GNU: '${{ steps.pre_release_x86_64_unknown_linux_gnu.outputs.ZIP_CHECKSUM }}'
ZIP_CHECKSUM_AARCH64_UNKNOWN_LINUX_GNU: '${{ steps.pre_release_aarch64_unknown_linux_gnu.outputs.ZIP_CHECKSUM }}'
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
if: 'matrix.config.target != ''aarch64-unknown-linux-gnu'' || github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')'
- uses: dsherret/rust-toolchain-file@3551321aa44dd44a0393eb3b6bdfbc5d25ecf621 # v1
if: 'matrix.config.target != ''aarch64-unknown-linux-gnu'' || github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')'
Expand All @@ -65,10 +65,10 @@ jobs:
run: rustup target add aarch64-apple-darwin
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
if: 'matrix.config.target != ''aarch64-unknown-linux-gnu'' || github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
if: 'matrix.config.target != ''aarch64-unknown-linux-gnu'' || github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')'
with:
node-version: 21
node-version: 24.x
- name: npm install
if: 'matrix.config.target != ''aarch64-unknown-linux-gnu'' || github.ref == ''refs/heads/main'' || startsWith(github.ref, ''refs/tags/'')'
run: cd js/node && npm ci
Expand Down Expand Up @@ -138,31 +138,31 @@ jobs:
zip -r dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip dprint-plugin-prettier
echo "ZIP_CHECKSUM=$(shasum -a 256 dprint-plugin-prettier-aarch64-unknown-linux-gnu.zip | awk '{print $1}')" >> $GITHUB_OUTPUT
- name: Upload artifacts (x86_64-apple-darwin)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: 'matrix.config.target == ''x86_64-apple-darwin'' && startsWith(github.ref, ''refs/tags/'')'
with:
name: x86_64-apple-darwin-artifacts
path: target/x86_64-apple-darwin/release/dprint-plugin-prettier-x86_64-apple-darwin.zip
- name: Upload artifacts (aarch64-apple-darwin)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: 'matrix.config.target == ''aarch64-apple-darwin'' && startsWith(github.ref, ''refs/tags/'')'
with:
name: aarch64-apple-darwin-artifacts
path: target/aarch64-apple-darwin/release/dprint-plugin-prettier-aarch64-apple-darwin.zip
- name: Upload artifacts (x86_64-pc-windows-msvc)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: 'matrix.config.target == ''x86_64-pc-windows-msvc'' && startsWith(github.ref, ''refs/tags/'')'
with:
name: x86_64-pc-windows-msvc-artifacts
path: target/x86_64-pc-windows-msvc/release/dprint-plugin-prettier-x86_64-pc-windows-msvc.zip
- name: Upload artifacts (x86_64-unknown-linux-gnu)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: 'matrix.config.target == ''x86_64-unknown-linux-gnu'' && startsWith(github.ref, ''refs/tags/'')'
with:
name: x86_64-unknown-linux-gnu-artifacts
path: target/x86_64-unknown-linux-gnu/release/dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip
- name: Upload artifacts (aarch64-unknown-linux-gnu)
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: 'matrix.config.target == ''aarch64-unknown-linux-gnu'' && startsWith(github.ref, ''refs/tags/'')'
with:
name: aarch64-unknown-linux-gnu-artifacts
Expand All @@ -175,9 +175,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Download artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
- name: Move downloaded artifacts to root directory
run: |-
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const preReleaseSteps = profiles.map((profile, i) => ({

// deno-lint-ignore no-explicit-any
const buildSteps: any[] = [
{ uses: "actions/checkout@v4" },
{ uses: "actions/checkout@v6" },
{ uses: "dsherret/rust-toolchain-file@v1" },
{
name: "Cache cargo",
Expand All @@ -118,8 +118,8 @@ const buildSteps: any[] = [
},
{ uses: "denoland/setup-deno@v2" },
{
uses: "actions/setup-node@v4",
with: { "node-version": 21 },
uses: "actions/setup-node@v6",
with: { "node-version": "24.x" },
},
{
name: "npm install",
Expand Down Expand Up @@ -180,7 +180,7 @@ const buildSteps: any[] = [
...profiles.map((profile) => ({
name: `Upload artifacts (${profile.target})`,
if: target.equals(profile.target).and(isTag),
uses: "actions/upload-artifact@v4",
uses: "actions/upload-artifact@v7",
with: {
name: profile.artifactsName,
path: `target/${profile.target}/release/${profile.zipFileName}`,
Expand Down Expand Up @@ -241,8 +241,8 @@ const draftReleaseJob = job("draft_release", {
needs: [buildJob],
runsOn: "ubuntu-latest",
steps: [
{ name: "Checkout", uses: "actions/checkout@v4" },
{ name: "Download artifacts", uses: "actions/download-artifact@v4" },
{ name: "Checkout", uses: "actions/checkout@v6" },
{ name: "Download artifacts", uses: "actions/download-artifact@v8" },
{ uses: "denoland/setup-deno@v2" },
{
name: "Move downloaded artifacts to root directory",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
timeout-minutes: 30
steps:
- name: Clone repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
token: "${{ secrets.GH_DPRINTBOT_PAT }}"
token: '${{ secrets.GH_DPRINTBOT_PAT }}'
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2
- uses: dsherret/rust-toolchain-file@3551321aa44dd44a0393eb3b6bdfbc5d25ecf621 # v1
- name: Bump version and tag
env:
GITHUB_TOKEN: "${{ secrets.GH_DPRINTBOT_PAT }}"
GH_WORKFLOW_ACTOR: "${{ github.actor }}"
GITHUB_TOKEN: '${{ secrets.GH_DPRINTBOT_PAT }}'
GH_WORKFLOW_ACTOR: '${{ github.actor }}'
run: |-
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ workflow({
steps: [
{
name: "Clone repository",
uses: "actions/checkout@v4",
uses: "actions/checkout@v6",
with: { token: "${{ secrets.GH_DPRINTBOT_PAT }}" },
},
{ uses: "denoland/setup-deno@v2" },
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Wrapper around [prettier](https://prettier.io/) in order to use it as a dprint p
1. Install [dprint](https://dprint.dev/install/)
2. Run `dprint init` to create the config file.
3. Run `dprint add prettier` to add this plugin.
- Or install from npm: `dprint add npm:@dprint/prettier`

## Configuration

Expand Down
Loading