corpus

Log | Files | Refs | README | LICENSE

commit f179336acb1a69aa88fe4a763947b45060ab130a
parent 2e8d268a16effb772794cdc6bace2e5b8968b41b
Author: mtmn <miro@haravara.org>
Date:   Wed, 22 Apr 2026 22:19:27 +0200

fix: revert release-please gha

Diffstat:
M.github/workflows/release-please.yml | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml @@ -10,6 +10,9 @@ permissions: jobs: release-please: runs-on: ubuntu-latest + outputs: + prs_created: ${{ steps.release.outputs.prs_created }} + pr_branch: ${{ steps.release.outputs.prs_created == 'true' && fromJSON(steps.release.outputs.pr).headBranchName || '' }} steps: - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1 id: release @@ -17,3 +20,24 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} release-type: node + update-nix-hash: + runs-on: ubuntu-latest + needs: release-please + if: ${{ needs.release-please.outputs.prs_created == 'true' }} + steps: + - uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 + - name: Update npmDepsHash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: ${{ needs.release-please.outputs.pr_branch }} + run: | + git clone --depth=1 --branch="$BRANCH" \ + "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" . + hash=$(nix run nixpkgs#prefetch-npm-deps -- package-lock.json) + sed -i "s|npmDepsHash = \"sha256-[^\"]*\"|npmDepsHash = \"$hash\"|" flake.nix + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add flake.nix + git diff --staged --quiet || git commit -m "chore: update npmDepsHash" + git push +