Merge pull request #385 from sasjs/bumpCore_20251125 #213
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: SASjs Server Executable Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| node-version: [lts/*] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Dependencies WEB | |
| working-directory: ./web | |
| run: npm ci | |
| - name: Build WEB | |
| working-directory: ./web | |
| run: npm run build | |
| env: | |
| CI: true | |
| - name: Install Dependencies API | |
| working-directory: ./api | |
| run: npm ci | |
| - name: Build Executables | |
| working-directory: ./api | |
| run: npm run exe | |
| env: | |
| CI: true | |
| - name: Compress Executables | |
| working-directory: ./executables | |
| run: | | |
| zip linux.zip api-linux | |
| zip macos.zip api-macos | |
| zip windows.zip api-win.exe | |
| - name: Install Semantic Release and plugins | |
| run: | | |
| npm i | |
| npm i -g semantic-release | |
| - name: Release | |
| run: | | |
| GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} semantic-release |