-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.05 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
branches:
- main
name: release-please
permissions: {}
jobs:
release-please:
permissions:
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@bn3t/ssin-lib'
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
- run: npm install npm@latest -g
- run: npm ci
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}