Merge pull request #291 from YetiForceCompany/release #57
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
| name: PROD - Test build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build - node 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install | |
| uses: borales/actions-yarn@v4 | |
| with: | |
| cmd: install | |
| - name: Build bundle | |
| uses: borales/actions-yarn@v4 | |
| with: | |
| cmd: build | |
| - name: Zip artifact | |
| run: zip -q -r build.zip build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build | |
| path: ${{github.workspace}}/build.zip |