@@ -6,11 +6,16 @@ name: release-please
6
6
7
7
on :
8
8
push :
9
+ paths :
10
+ - ' packages/bootstrap-vue-3/**'
11
+ - ' .github/workflows/release-please.yaml'
9
12
branches :
10
13
- main
11
14
12
15
jobs :
13
16
release-please :
17
+ env :
18
+ path : packages/bootstrap-vue-3
14
19
runs-on : ${{ matrix.os }}
15
20
16
21
strategy :
24
29
id : release
25
30
with :
26
31
release-type : node
27
- path : packages/bootstrap-vue-3
32
+ path : ${{ env.path }}
28
33
package-name : bootstrap-vue-3
29
34
bump-minor-pre-major : true
30
35
bump-patch-for-minor-pre-major : true
@@ -35,26 +40,34 @@ jobs:
35
40
uses : actions/checkout@v3
36
41
# these if statements ensure that a publication only occurs when
37
42
# a new release is created:
38
- if : ${{ steps.release.outputs.release_created }}
43
+ if : ${{ contains( steps.release.outputs.paths_released, env.path) }}
39
44
40
45
- name : Install pnpm
41
46
42
- if : ${{ steps.release.outputs.release_created }}
47
+ if : ${{ contains( steps.release.outputs.paths_released, env.path) }}
43
48
44
49
- name : Set node version to 16
45
50
uses : actions/setup-node@v2
46
51
with :
47
52
node-version : 16
48
53
cache : ' pnpm'
49
54
registry-url : ' https://registry.npmjs.org'
50
- if : ${{ steps.release.outputs.release_created }}
55
+ if : ${{ contains( steps.release.outputs.paths_released, env.path) }}
51
56
52
57
- name : Install dependencies
53
- run : pnpm install
54
- if : ${{ steps.release.outputs.release_created }}
58
+ run : pnpm install --ignore-scripts
59
+ if : ${{ contains(steps.release.outputs.paths_released, env.path) }}
60
+
61
+ - name : Build library
62
+ run : pnpm run build
63
+ if : ${{ contains(steps.release.outputs.paths_released, env.path) }}
64
+
65
+ - name : Test library
66
+ run : pnpm test
67
+ if : ${{ contains(steps.release.outputs.paths_released, env.path) }}
55
68
56
69
- name : Publish
57
70
run : pnpm publish --tag develop --filter .\packages\bootstrap-vue-3\
58
71
env :
59
72
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
60
- if : ${{ steps.release.outputs.release_created }}
73
+ if : ${{ contains( steps.release.outputs.paths_released, env.path) }}
0 commit comments