Skip to content

Instantly share code, notes, and snippets.

@amiranagram
Created March 1, 2022 23:34
Show Gist options
  • Save amiranagram/936029b47d46834267879f5385032ad6 to your computer and use it in GitHub Desktop.
Save amiranagram/936029b47d46834267879f5385032ad6 to your computer and use it in GitHub Desktop.
# 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