Created
March 1, 2022 23:34
-
-
Save amiranagram/936029b47d46834267879f5385032ad6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# This workflow will do a clean installation of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Build assets | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Use Node.js 15 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 15 | |
- run: npm ci --production | |
- run: npm run prod | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Build Assets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment