|
16 | 16 | release-please:
|
17 | 17 | env:
|
18 | 18 | path: packages/bootstrap-vue-3
|
| 19 | + postfix: --release_created |
19 | 20 | runs-on: ${{ matrix.os }}
|
20 | 21 |
|
21 | 22 | strategy:
|
@@ -43,34 +44,34 @@ jobs:
|
43 | 44 | uses: actions/checkout@v3
|
44 | 45 | # these if statements ensure that a publication only occurs when
|
45 | 46 | # a new release is created:
|
46 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 47 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
47 | 48 |
|
48 | 49 | - name: Install pnpm
|
49 | 50 |
|
50 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 51 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
51 | 52 |
|
52 | 53 | - name: Set node version to 16
|
53 | 54 | uses: actions/setup-node@v2
|
54 | 55 | with:
|
55 | 56 | node-version: 16
|
56 | 57 | cache: 'pnpm'
|
57 | 58 | registry-url: 'https://registry.npmjs.org'
|
58 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 59 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
59 | 60 |
|
60 | 61 | - name: Install dependencies
|
61 | 62 | run: pnpm install --ignore-scripts
|
62 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 63 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
63 | 64 |
|
64 | 65 | - name: Build library
|
65 | 66 | run: pnpm run build
|
66 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 67 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
67 | 68 |
|
68 | 69 | - name: Test library
|
69 | 70 | run: pnpm test
|
70 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 71 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
71 | 72 |
|
72 | 73 | - name: Publish
|
73 | 74 | run: pnpm publish --tag develop --filter .\packages\bootstrap-vue-3\
|
74 | 75 | env:
|
75 | 76 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
76 |
| - if: ${{ steps.release.outputs['packages/bootstrap-vue-3--release_created'] }} |
| 77 | + if: ${{ steps.release.outputs[format('{0}{1}', env.path, env.postfix)] }} |
0 commit comments