-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.06 KB
/
ci.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
name: CI
on:
push:
branches:
- master
- "*.x"
# - "workflow"
paths-ignore:
- "**.md"
pull_request:
branches:
- master
- "*.x"
paths-ignore:
- "**.md"
workflow_dispatch:
inputs:
publish:
description: "Publish 🚀"
required: false
type: boolean
default: false
force-prerelease:
description: "Force Pre-release"
required: false
type: boolean
default: true
jobs:
package:
name: Package
uses: sketch7/.github/.github/workflows/node-lib.yml@node-libs-v1
with:
package-manager: "pnpm"
node-version: "20"
publishable: ${{ contains(fromJSON('["develop", "master", "workflow"]'), github.ref_name) || endsWith(github.ref_name, '.x') || github.event.inputs.publish == 'true' }}
force-preid: ${{ github.event.inputs.force-prerelease == 'true' }}
preid-branches: "master,workflow"
version-replace-glob: "libs/**/{package.json,version.ts}"
secrets:
npm-auth-token: ${{ secrets.NPM_KEY }}