From fab03a4ffe10550e73cb56df5e600c5431a1e7ce Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 26 Jun 2024 19:59:09 +0200 Subject: [PATCH 1/2] Improve GitHub actions --- .github/workflows/workflow.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ae581c2..da106cf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,8 +17,10 @@ jobs: - name: checkout uses: actions/checkout@v4 - - name: install dev dependencies - run: npm install + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm - name: build the actions run: npm run build @@ -35,4 +37,5 @@ jobs: user-name: GHA build process create-target-branch-if-needed: true commit-message: Build from - ${{ github.sha }}. Original commit message - ${{ github.event.head_commit.message }} - target-branch: ${{ github.ref_name }} \ No newline at end of file + target-branch: ${{ github.ref_name }} + user-email: actions@github.com \ No newline at end of file From c6749c911a94e0ca0c911ced483e17390f63f1f0 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Wed, 26 Jun 2024 20:01:39 +0200 Subject: [PATCH 2/2] Add missing npm install --- .github/workflows/workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index da106cf..93d3a7d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -21,7 +21,9 @@ jobs: with: node-version: 20 cache: npm - + + - name: install dev dependencies + run: npm install - name: build the actions run: npm run build @@ -38,4 +40,4 @@ jobs: create-target-branch-if-needed: true commit-message: Build from - ${{ github.sha }}. Original commit message - ${{ github.event.head_commit.message }} target-branch: ${{ github.ref_name }} - user-email: actions@github.com \ No newline at end of file + user-email: actions@github.com