From d1ffd96ba76fd5071fcac96fc83e8c6041478284 Mon Sep 17 00:00:00 2001 From: Dave Bloom Date: Thu, 4 Apr 2024 11:50:18 -0700 Subject: [PATCH] Update build-dist.yml workflow --- .github/workflows/build-dist.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-dist.yml b/.github/workflows/build-dist.yml index 8fb27a2..78b9428 100644 --- a/.github/workflows/build-dist.yml +++ b/.github/workflows/build-dist.yml @@ -5,17 +5,17 @@ on: jobs: create-action-dist: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: Package Action code steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v2 - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '20' + node-version: '12' - name: Install app dependencies run: | @@ -26,11 +26,10 @@ jobs: npm run-script build - name: Add and commit Action dist - run: | - git config --global user.name 'Action workflow' - git config --global user.email 'dave@digitalnoise.net' - git add dist/index.js - git commit -m "dist created from ${{ github.ref }} for sha (${{ github.sha }})" - git push origin main + uses: EndBug/add-and-commit@v9.1.4 + with: + author_name: Action workflow + author_email: dave@digitalnoise.net + message: "dist created from ${{ github.ref }} for sha (${{ github.sha }})" env: - GH_TOKEN: ${{ secrets.DIST_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DIST_TOKEN }}