File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed
Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : On-Demand Unit Testing
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ ref :
7+ description : ' Branch or tag to test'
8+ required : true
9+ default : ' main'
10+
11+ jobs :
12+ test :
13+ name : On-Demand Unit Testing on ${{ inputs.ref }}
14+ uses : WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
15+ secrets : inherit
16+ with :
17+ pwsh : false
18+ build : false
19+ ref : ${{ inputs.ref }}
Original file line number Diff line number Diff line change 1+ name : Publish NPM Package
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ node-version :
7+ description : Node.js version to use.
8+ required : false
9+ type : choice
10+ options :
11+ - ' 18'
12+ - ' 20'
13+ - ' 22'
14+ - ' 24'
15+ default : ' 24'
16+ dry-run :
17+ description : Performs a dry run of the publish.
18+ required : false
19+ type : boolean
20+ default : false
21+
22+ jobs :
23+ publish :
24+ name : Publish NPM Package
25+ uses : WJSoftware/cicd/.github/workflows/npm-publish.yml@v0.1.0
26+ secrets : inherit
27+ with :
28+ node-version : ${{ inputs.node-version }}
29+ npm_tag : latest
30+ dry_run : ${{ inputs.dry-run }}
Original file line number Diff line number Diff line change 1+ name : Test Pull Request
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' **'
7+
8+ jobs :
9+ test :
10+ name : Unit Testing
11+ uses : WJSoftware/cicd/.github/workflows/npm-test.yml@v0.2
12+ secrets : inherit
13+ with :
14+ pwsh : false
15+ build : false
16+ ref : ${{ github.head_ref }}
You can’t perform that action at this time.
0 commit comments