Solving errors in merge to main (#59) #14
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: Create and Push Agent TGZ to Main | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/agent/**' | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Enable Corepack | |
run: | | |
corepack enable | |
corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn install | |
- name: Build and bundle | |
run: | | |
cd apps/agent | |
yarn bundle | |
- name: Rename bundle | |
run: mv apps/agent/dist/*.tgz apps/agent/dist/agent-${{ github.sha }}.tgz | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: agent-${{ github.sha }}.tgz | |
path: apps/agent/dist/agent-${{ github.sha }}.tgz | |
if-no-files-found: error | |
retention-days: 1 | |
compression-level: 0 |