Skip to content

Commit

Permalink
Update build-dist.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thedave42 authored Apr 4, 2024
1 parent 6ca333b commit 7438f79
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: [email protected]
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 }}

0 comments on commit 7438f79

Please sign in to comment.