File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Node.js CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ node : ['14.19.0', '16.14.0', '17.4.0']
11+ name : Node ${{ matrix.node }} testing
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v2
15+ with :
16+ node-version : ${{ matrix.node }}
17+ - uses : actions/cache@v2
18+ with :
19+ path : ~/.npm
20+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21+ restore-keys : |
22+ ${{ runner.os }}-build-${{ env.cache-name }}-
23+ ${{ runner.os }}-build-
24+ ${{ runner.os }}-
25+ - run : npm ci
26+ - name : eslint
27+ run : npm run lint:check
28+ - name : prettier
29+ run : npm run format:check
30+ release :
31+ if : github.ref == 'refs/heads/master'
32+ needs : test
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v2
36+ - uses : actions/setup-node@v2
37+ with :
38+ node-version : ' 17.4.0'
39+ - uses : actions/cache@v2
40+ with :
41+ path : ~/.npm
42+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
43+ restore-keys : |
44+ ${{ runner.os }}-build-${{ env.cache-name }}-
45+ ${{ runner.os }}-build-
46+ ${{ runner.os }}-
47+ - run : npm ci
48+ - run : npx semantic-release
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33[ ![ npm version] ( https://img.shields.io/npm/v/@eclass/semantic-release-npm-github-config.svg )] ( https://www.npmjs.com/package/@eclass/semantic-release-npm-github-config )
44[ ![ npm downloads] ( https://img.shields.io/npm/dm/@eclass/semantic-release-npm-github-config.svg )] ( https://www.npmjs.com/package/@eclass/semantic-release-npm-github-config )
5- [ ![ Build Status ] ( https://travis-ci.org /eclass/semantic-release-npm-github-config.svg?branch=master )] ( https://travis-ci.org/eclass/semantic-release-npm-github-config )
5+ ![ Node.js CI ] ( https://github.com /eclass/semantic-release-npm-github-config/workflows/Node.js%20CI/badge.svg )
66[ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/ac3f78a532b19f7ee027/maintainability )] ( https://codeclimate.com/github/eclass/semantic-release-npm-github-config/maintainability )
77[ ![ devDependency Status] ( https://img.shields.io/david/dev/eclass/semantic-release-npm-github-config.svg )] ( https://david-dm.org/eclass/semantic-release-npm-github-config#info=devDependencies )
88
You can’t perform that action at this time.
0 commit comments