generated from sapphiredev/sapphire-template
-
-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (45 loc) · 1.24 KB
/
continuous-delivery.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
47
name: Continuous Delivery
on:
workflow_dispatch:
inputs:
prNumber:
description: The number of the PR that is being deployed
required: false
type: string
ref:
description: The branch that is being deployed. Should be a branch on the given repository
required: false
default: main
type: string
repository:
description: The {owner}/{repository} that is being deployed.
required: false
default: sapphiredev/plugins
type: string
push:
branches:
- main
jobs:
Publish:
name: Publish Next to npm
uses: sapphiredev/.github/.github/workflows/reusable-continuous-delivery.yml@main
strategy:
fail-fast: false
matrix:
package:
- api
- editable-commands
- hmr
- i18next
- logger
- pattern-commands
- scheduled-tasks
- subcommands
- utilities-store
with:
pr-number: ${{ github.event.inputs.prNumber }}
ref: ${{ github.event.inputs.ref }}
repository: ${{ github.event.inputs.repository }}
working-directory: packages/${{ matrix.package }}
secrets:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}