Created
January 11, 2023 15:59
-
-
Save LuceCarter/65966c4d65d063d25256ca36882af64a to your computer and use it in GitHub Desktop.
Mern Stack Example Build Step YAML
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
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