Skip to content

Commit 5c6bbf1

Browse files
author
issayah
committed
chore(workflow): release please bot to update npm
1 parent 5f08140 commit 5c6bbf1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,25 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: google-github-actions/release-please-action@v3
11+
id: release
1112
with:
1213
release-type: node
1314
package-name: bootstrap-vue-3
1415
bump-minor-pre-major: true
1516
bump-patch-for-minor-pre-major: true
17+
# The logic below handles the npm publication:
18+
- uses: actions/checkout@v2
19+
# these if statements ensure that a publication only occurs when
20+
# a new release is created:
21+
if: ${{ steps.release.outputs.release_created }}
22+
- uses: actions/setup-node@v1
23+
with:
24+
node-version: 12
25+
registry-url: 'https://registry.npmjs.org'
26+
if: ${{ steps.release.outputs.release_created }}
27+
- run: npm ci
28+
if: ${{ steps.release.outputs.release_created }}
29+
- run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)