Skip to content

Commit

Permalink
Update build-dist.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thedave42 committed Apr 4, 2024
1 parent f83160c commit d1ffd96
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 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-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: |
Expand All @@ -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 '[email protected]'
git add dist/index.js
git commit -m "dist created from ${{ github.ref }} for sha (${{ github.sha }})"
git push origin main
uses: EndBug/[email protected]
with:
author_name: Action workflow
author_email: [email protected]
message: "dist created from ${{ github.ref }} for sha (${{ github.sha }})"
env:
GH_TOKEN: ${{ secrets.DIST_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DIST_TOKEN }}

0 comments on commit d1ffd96

Please sign in to comment.