File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11name : CI-CD
22
33on :
4+ pull_request :
5+ branches :
6+ - main
47 push :
58 branches :
6- - " *"
7- tags-ignore :
8- - " *"
9+ - main
910
1011 # run CI every Monday at 12:25 UTC
1112 schedule :
@@ -177,7 +178,7 @@ jobs:
177178 exit 1
178179
179180 deploy :
180- if : ${{ github.ref == 'refs/heads/master ' }}
181+ if : ${{ github.ref == 'refs/heads/main ' }}
181182 name : Publish to NPM
182183 runs-on : ubuntu-latest
183184 timeout-minutes : 10
Original file line number Diff line number Diff line change 33[ ![ Cross-Platform Compatibility] ( https://jstools.dev/img/badges/os-badges.svg )] ( https://github.com/JS-DevTools/npm-publish/actions )
44[ ![ Build Status] ( https://github.com/JS-DevTools/npm-publish/workflows/CI-CD/badge.svg )] ( https://github.com/JS-DevTools/npm-publish/actions )
55
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 )
77
88[ ![ npm] ( https://img.shields.io/npm/v/@jsdevtools/npm-publish.svg )] ( https://www.npmjs.com/package/@jsdevtools/npm-publish )
99[ ![ License] ( https://img.shields.io/npm/l/@jsdevtools/npm-publish.svg )] ( LICENSE )
5050 - uses : actions/checkout@v3
5151 - uses : actions/setup-node@v3
5252 with :
53- node-version : 12
53+ node-version : 18
5454 - run : npm ci
5555 - run : npm test
5656 - uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments