2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : CI-CD
2
2
3
3
on :
4
+ pull_request :
5
+ branches :
6
+ - main
4
7
push :
5
8
branches :
6
- - " *"
7
- tags-ignore :
8
- - " *"
9
+ - main
9
10
10
11
# run CI every Monday at 12:25 UTC
11
12
schedule :
@@ -177,7 +178,7 @@ jobs:
177
178
exit 1
178
179
179
180
deploy :
180
- if : ${{ github.ref == 'refs/heads/master ' }}
181
+ if : ${{ github.ref == 'refs/heads/main ' }}
181
182
name : Publish to NPM
182
183
runs-on : ubuntu-latest
183
184
timeout-minutes : 10
Original file line number Diff line number Diff line change 3
3
[ ![ Cross-Platform Compatibility] ( https://jstools.dev/img/badges/os-badges.svg )] ( https://github.com/JS-DevTools/npm-publish/actions )
4
4
[ ![ Build Status] ( https://github.com/JS-DevTools/npm-publish/workflows/CI-CD/badge.svg )] ( https://github.com/JS-DevTools/npm-publish/actions )
5
5
6
- [ ![ Coverage Status] ( https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=master )] ( https://coveralls.io/github/JS-DevTools/npm-publish )
6
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=main )] ( https://coveralls.io/github/JS-DevTools/npm-publish )
7
7
8
8
[ ![ npm] ( https://img.shields.io/npm/v/@jsdevtools/npm-publish.svg )] ( https://www.npmjs.com/package/@jsdevtools/npm-publish )
9
9
[ ![ License] ( https://img.shields.io/npm/l/@jsdevtools/npm-publish.svg )] ( LICENSE )
50
50
- uses : actions/checkout@v3
51
51
- uses : actions/setup-node@v3
52
52
with :
53
- node-version : 12
53
+ node-version : 18
54
54
- run : npm ci
55
55
- run : npm test
56
56
- uses : JS-DevTools/npm-publish@v1
0 commit comments