Skip to content

Instantly share code, notes, and snippets.

@LuceCarter
Created January 11, 2023 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuceCarter/65966c4d65d063d25256ca36882af64a to your computer and use it in GitHub Desktop.
Save LuceCarter/65966c4d65d063d25256ca36882af64a to your computer and use it in GitHub Desktop.
Mern Stack Example Build Step YAML
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install npm packages - server
run: |
cd mern/server
npm install
- name: Install npm packages, build then copy files - client
run: |
cd mern/client
npm install
npm run build
cp -r ./build ../server/public
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: mern-app
path: mern/server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment