Skip to content

Commit

Permalink
ci: release build and upload artifact step
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier committed Sep 23, 2024
1 parent 54266db commit 050c733
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,32 @@ jobs:
run: pnpm publier.${{ matrix.source }}
- name: Internal deduplication
run: pnpm dedupliquer.${{ matrix.source }}

build:
uses: romain-cambonie/serenity-workflows/.github/workflows/_build-and-upload-artifact.reusable.yml@master

name: Build and upload artifact
runs-on: ubuntu-latest
steps:
- name: Checkout mednum-cli repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Upload build bundle as artifact
uses: actions/upload-artifact@v4
with:
name: bundle
path: |
package.json
dist
publish:
name: Publish package to npm
runs-on: ubuntu-latest
Expand Down

0 comments on commit 050c733

Please sign in to comment.