File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Only triggers on version tags like v1.0.1
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+
15+ - uses : actions/setup-node@v3
16+ with :
17+ node-version : 18
18+ registry-url : ' https://registry.npmjs.org/'
19+
20+ - run : npm install
21+
22+ - run : npm publish
23+ env :
24+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ node-version : [16.x, 18.x, 20.x]
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Use Node.js ${{ matrix.node-version }}
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+
23+ - run : npm install
24+
25+ - name : Run basic CLI test
26+ run : node cli.js --total 5 --speed 10 --theme classic --message "Test done"
You can’t perform that action at this time.
0 commit comments