[Feature] show run results under lineage #171
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: Node.js - Build & Auto-Commit to CLI data/report/** | |
on: | |
pull_request: | |
types: | |
- closed | |
# Trigger when PR is closed | |
paths: | |
- "js/**" | |
# Trigger when diffs detected in js sources | |
branches: | |
- main | |
- release/** | |
# Only PR target are `main` or `release/**` branches | |
jobs: | |
if_merged_build: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
defaults: | |
run: | |
working-directory: ./js | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Install dependencies | |
working-directory: ./js | |
run: pnpm install --frozen-lockfile | |
- name: Build Apps | |
run: pnpm run build | |
- name: Pull Remote Changes (before AC) | |
run: git pull origin ${{ github.base_ref }} | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: AUTO-COMMIT - build js statics to recce data/ | |
branch: ${{ github.base_ref }} | |
# Auto-commits to target merge branch |