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