-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (36 loc) · 921 Bytes
/
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
name: CI
on:
push:
branches:
- master
- '*.x'
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@master
with:
node-version: '18'
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' }}
secrets:
npm-auth-token: ${{ secrets.NPM_KEY }}