generated from streetsidesoftware/template-typescript-cli-app
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 984 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
46
name: release-please
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: actions/checkout@v3
- uses: google-github-actions/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
# cspell:ignore noreply
publish:
runs-on: ubuntu-latest
needs:
- release-please
if: ${{ needs.release-please.outputs.release_created }}
steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- run: |
pnpm i
pnpm build
# - run: pnpm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM}}