Update build pipeline to upload artifacts for the binary #256

Merged
Vylpes merged 2 commits from feature/248-release-branch into develop 2025-01-14 18:31:44 +00:00
2 changed files with 22 additions and 9 deletions
Showing only changes of commit e638724811 - Show all commits

View file

@ -21,18 +21,29 @@ jobs:
- run: yarn test
- run: yarn lint
publish:
package:
needs: build
runs-on: node
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn package
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
path: bin/
if-no-files-found: error
publish:
needs: package
runs-on: node
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn package
- run: cp -r ./bin ${{ secrets.PROD_REPO_PATH }}
- uses: https://github.com/JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

View file

@ -23,7 +23,7 @@ jobs:
- run: yarn test
- run: yarn lint
rsync:
package:
needs: build
runs-on: node
steps:
@ -31,7 +31,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn package
- run: cp -r ./bin ${{ secrets.STAGE_REPO_PATH }}
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
path: bin/
if-no-files-found: error