-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 936 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release Template
on:
workflow_call:
inputs:
PATH:
required: true
type: string
description: "Path to the package to be released"
secrets:
NPM_TOKEN:
required: true
jobs:
run_checks:
name: Run code checks
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_run_checks.yml@v4.1.0
with:
PREPARE: pnpm -r --filter './packages/**' build
run_unit_tests:
name: Run tests (vitest)
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_run_tests_vitest.yml@v4.1.0
with:
PREPARE: pnpm -r --filter './packages/**' build
build_and_publish:
name: Build and publish artifact
uses: spuxx-dev/ci-cd/.github/workflows/pnpm_build_and_publish.yml@v4.1.0
needs:
- run_checks
- run_unit_tests
with:
PATH: ${{ inputs.PATH }}
BUILD_COMMAND: pnpm -r --filter './packages/**' build
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}