Update post.js #23
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: Build Action | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "src/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: install nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Action | |
run: npm run build | |
- name: Commit and push | |
env: | |
ACTOR: ${{ github.actor }} | |
run: | | |
git config --global user.name "$ACTOR" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m "Action build at commit $GITHUB_SHA" | |
git push origin |