Agrega paso de build al pipeline - refactor #5
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 and Deploy React App | |
on: | |
push: | |
branches: | |
- new-web | |
path: | |
- .github/workflows/web.yml | |
jobs: | |
web-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout código fuente | |
uses: actions/checkout@v2 | |
- name: Configurar Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Instalar dependencias | |
run: npm install | |
working-directory: ./web | |
- name: Compilar la aplicación | |
run: npm run build | |
working-directory: ./web | |
- name: Publicar artefactos | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: web/build |