From e50f885ba2523bd9a7985fa76a15c1768daa57ed Mon Sep 17 00:00:00 2001 From: Agahnim <43116178+naguiagahnim@users.noreply.github.com> Date: Tue, 5 May 2026 10:36:57 +0200 Subject: [PATCH] add CI/CD to automate npm hash updating --- .github/workflows/update-npm-hash.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update-npm-hash.yml diff --git a/.github/workflows/update-npm-hash.yml b/.github/workflows/update-npm-hash.yml new file mode 100644 index 0000000..9651a57 --- /dev/null +++ b/.github/workflows/update-npm-hash.yml @@ -0,0 +1,31 @@ +name: Update npm deps hash + +on: + push: + paths: + - "package-lock.json" + +jobs: + update-hash: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - uses: DeterminateSystems/nix-installer-action@main + + - name: Update hash + run: ./update-npm-hash.sh + + - name: Commit changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add package.nix + if [[ $(git status -s) ]]; then + git commit -m "chore: update npm deps hash" + git push + else + echo "Hash wasn't changed" + fi