diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 03c98b9..1efe0d1 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -21,6 +21,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + token: ${{ secrets.PAT }} + ref: ${{ github.ref_name }} - name: Setup Node.js 20.x uses: actions/setup-node@v3.8.1 @@ -35,12 +38,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