From de2c118b0e3363cf0e13aa098218b8bb9cb2f0d5 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Wed, 27 Aug 2025 11:19:52 -0700 Subject: [PATCH] Update npm-build.yml --- .github/workflows/npm-build.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml index 1ec4844..cc230c6 100644 --- a/.github/workflows/npm-build.yml +++ b/.github/workflows/npm-build.yml @@ -1,23 +1,13 @@ -on: - workflow_dispatch: - push: -permissions: write-all -jobs: - build-push: +on: workflow_call +jobs: + build-push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{secrets.GITHUB_TOKEN}} - uses: actions/setup-node@v4 with: - node-version: '22' - - run: | - npm install - npm run build - - run: | - git config user.name "github-actions" - git config user.email "github-actions@github.com" - git add . - git commit -m "This build was committed by a bot." - git push + node-version: 24 + - run: npm install && npm run build + - run: git config user.name github-actions[bot] && git config user.email 41898282+github-actions[bot]@users.noreply.github.com && git add . && git commit -m "This build was committed by a bot." && git push