Skip to content

Commit 839a885

Browse files
authored
Merge pull request #526 from VividLemon/main
ci: finish release please fix
2 parents cfdb568 + c04df8b commit 839a885

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/release-please.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ name: release-please
66

77
on:
88
push:
9+
paths:
10+
- 'packages/bootstrap-vue-3/**'
11+
- '.github/workflows/release-please.yaml'
912
branches:
1013
- main
1114

1215
jobs:
1316
release-please:
17+
env:
18+
path: packages/bootstrap-vue-3
1419
runs-on: ${{ matrix.os }}
1520

1621
strategy:
@@ -24,7 +29,7 @@ jobs:
2429
id: release
2530
with:
2631
release-type: node
27-
path: packages/bootstrap-vue-3
32+
path: ${{ env.path }}
2833
package-name: bootstrap-vue-3
2934
bump-minor-pre-major: true
3035
bump-patch-for-minor-pre-major: true
@@ -35,26 +40,34 @@ jobs:
3540
uses: actions/checkout@v3
3641
# these if statements ensure that a publication only occurs when
3742
# a new release is created:
38-
if: ${{ steps.release.outputs.release_created }}
43+
if: ${{ contains(steps.release.outputs.paths_released, env.path) }}
3944

4045
- name: Install pnpm
4146
uses: pnpm/[email protected]
42-
if: ${{ steps.release.outputs.release_created }}
47+
if: ${{ contains(steps.release.outputs.paths_released, env.path) }}
4348

4449
- name: Set node version to 16
4550
uses: actions/setup-node@v2
4651
with:
4752
node-version: 16
4853
cache: 'pnpm'
4954
registry-url: 'https://registry.npmjs.org'
50-
if: ${{ steps.release.outputs.release_created }}
55+
if: ${{ contains(steps.release.outputs.paths_released, env.path) }}
5156

5257
- 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) }}
5568

5669
- name: Publish
5770
run: pnpm publish --tag develop --filter .\packages\bootstrap-vue-3\
5871
env:
5972
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

Comments
 (0)