Skip to content

Commit

Permalink
Commit dist when changes occurred.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaus67 committed Nov 3, 2023
1 parent ed15d99 commit 8027215
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Package Action

on:
# TODO(dhaus): Only for testing purposes.
pull_request:
push:
branches:
- main
Expand All @@ -21,6 +23,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}

- name: Setup Node.js 20.x
uses: actions/setup-node@v3.8.1
Expand All @@ -35,12 +39,12 @@ jobs:
run: |
npm run build
npm run package
# TODO(dhaus): Configure secrets in repository to enable pushing the dist.
# - uses: chainguard-dev/actions/setup-gitsign@main
# - name: Commit Dist
# run: |
# git config --global user.email "roxbot@stackrox.com"
# git config --global user.name "Robot Rox"
# git add dist
# git commit -m "chore: Update dist" || echo "No changes to commit."
# git push origin
- uses: chainguard-dev/actions/setup-gitsign@main
- name: Commit Dist
run: |
git config --global user.email "roxbot@stackrox.com"
git config --global user.name "Robot Rox"
git add dist
git commit -m "chore: Update dist" || echo "No changes to commit."
git push origin

0 comments on commit 8027215

Please sign in to comment.