mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Apply prettier-compatible formatting across the repo to match the incoming oxfmt configuration. Mechanical reformat only — no logic changes. Covers YAML quote normalization, package.json key sorting, Markdown/TOML formatting, and minor TS whitespace tweaks.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Fix Nix hash
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
pull_request:
|
|
paths:
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
fix-nix-hash:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.head_ref || github.ref }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: "npm"
|
|
|
|
- uses: cachix/install-nix-action@v31
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- name: Fix lockfile and update hash
|
|
run: ./scripts/update-nix.sh
|
|
|
|
- name: Commit changes
|
|
run: |
|
|
git diff --quiet package-lock.json nix/package.nix && exit 0
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add package-lock.json nix/package.nix
|
|
git commit -m "fix: update lockfile signatures and Nix hash"
|
|
git push
|