From 7438f79e25ba3b4981c11fafdf8b476d51d96cf4 Mon Sep 17 00:00:00 2001 From: Dave <50186003+thedave42@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:32:52 -0700 Subject: [PATCH] Update build-dist.yml --- .github/workflows/build-dist.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-dist.yml b/.github/workflows/build-dist.yml index b3f2cce..aee3417 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-20.04 + runs-on: ubuntu-latest name: Package Action code steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '20' - name: Install app dependencies run: | @@ -24,12 +24,10 @@ jobs: - name: Creating dist from ${{ github.ref }} for sha (${{ github.sha }}) run: | npm run-script build - - - name: Add and commit Action dist - uses: EndBug/add-and-commit@v5 - with: - author_name: Action workflow - author_email: dave@digitalnoise.net - message: "dist created from ${{ github.ref }} for sha (${{ github.sha }})" + - name: + run: | + gh git add dist/ + gh git commit -m "Build dist for ${{ github.ref }}" + gh git push origin main env: - GITHUB_TOKEN: ${{ secrets.DIST_TOKEN }} + GH_TOKEN: ${{ secrets.DIST_TOKEN }}