Added logging to github workflow #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Changeset | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
changeset: | |
name: Run Changeset | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Changeset | |
run: npm run changeset | |
# Optional: Examine the changes generated by Changeset | |
- name: Review Changeset Files | |
run: cat .changeset/* || echo "No changeset files created" | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" # Use operational account email | |
git config --local user.name "GitHub Action" | |
git add .changeset | |
git commit -m "Add changeset" || echo "No changes to commit" | |
git push |