File tree Expand file tree Collapse file tree 5 files changed +120
-25
lines changed
Expand file tree Collapse file tree 5 files changed +120
-25
lines changed Original file line number Diff line number Diff line change 1+ open_collective : foxify
Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+ name : Create Release
11+ runs-on : ubuntu-latest
12+ env :
13+ RELEASE : ${{ github.ref }}
14+ steps :
15+ - uses : actions/checkout@v2
16+ - uses : actions/setup-node@v1
17+ with :
18+ node-version : 14
19+ - run : npm ci
20+ - run : npm run lint
21+ - run : npm run build
22+ - run : npm run coverage
23+ - name : Upload coverage to Codecov
24+ uses : codecov/codecov-action@v1
25+ with :
26+ env_vars : RELEASE
27+ fail_ci_if_error : true
28+
29+ - name : Changelog
30+ id : changelog
31+ uses :
ardalanamini/[email protected] 32+ with :
33+ token : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Create Release
36+ id : create_release
37+ uses : actions/create-release@v1
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ with :
41+ tag_name : ${{ github.ref }}
42+ release_name : ${{ github.ref }}
43+ body : |
44+ ${{ steps.changelog.outputs.changelog }}
45+
46+ publish-npm :
47+ name : Publish to NPM
48+ needs : build
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@v2
52+ - uses : actions/setup-node@v1
53+ with :
54+ node-version : 14
55+ registry-url : https://registry.npmjs.org/
56+ - run : npm ci
57+ - run : npm run build
58+ - run : npm publish --access public
59+ env :
60+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
61+
62+ publish-gpr :
63+ name : Publish to Github
64+ needs : build
65+ runs-on : ubuntu-latest
66+ steps :
67+ - uses : actions/checkout@v2
68+ - uses : actions/setup-node@v1
69+ with :
70+ node-version : 14
71+ registry-url : https://npm.pkg.github.com/
72+ scope : ' @foxifyjs'
73+ - run : sed -i 's/@foxify\/events/@foxifyjs\/events/g' package.json package-lock.json
74+ - run : npm ci
75+ - run : npm run build
76+ - run : npm publish
77+ env :
78+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+ name : Test
5+
6+ on :
7+ push :
8+ branches :
9+ - master
10+ pull_request :
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ${{ matrix.os }}
16+
17+ strategy :
18+ matrix :
19+ os : [ macos-latest, windows-latest, ubuntu-latest ]
20+ node-version : [ 8.x, 10.x, 12.x, 14.x ]
21+
22+ env :
23+ OS : ${{ matrix.os }}
24+ NODE_VERSION : ${{ matrix.node-version }}
25+
26+ steps :
27+ - uses : actions/checkout@v2
28+ - name : Use Node.js ${{ matrix.node-version }}
29+ uses : actions/setup-node@v1
30+ with :
31+ node-version : ${{ matrix.node-version }}
32+ - run : npm ci
33+ - run : npm run lint
34+ - run : npm run build
35+ - run : npm run coverage
36+ - name : Upload coverage to Codecov
37+ uses : codecov/codecov-action@v1
38+ with :
39+ env_vars : OS,NODE_VERSION
40+ fail_ci_if_error : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99[ ![ Tested With Jest] ( https://img.shields.io/badge/tested_with-jest-99424f.svg )] ( https://github.com/facebook/jest )
1010[ ![ Pull Requests] ( https://img.shields.io/badge/PRs-Welcome-brightgreen.svg )] ( https://github.com/foxifyjs/events/pulls )
1111[ ![ License] ( https://img.shields.io/github/license/foxifyjs/events.svg )] ( https://github.com/foxifyjs/events/blob/master/LICENSE )
12- [ ![ Build Status] ( https://api.travis-ci. com/foxifyjs/events.svg?branch=master )] ( https://travis-ci .com/foxifyjs/events )
12+ [ ![ Build Status] ( https://github. com/foxifyjs/events/workflows/Test/badge .svg )] ( https://github .com/foxifyjs/events/actions )
1313[ ![ Coverage Status] ( https://codecov.io/gh/foxifyjs/events/branch/master/graph/badge.svg )] ( https://codecov.io/gh/foxifyjs/events )
1414[ ![ Package Quality] ( http://npm.packagequality.com/shield/%40foxify%2Fodin.svg )] ( http://packagequality.com/#?package=@foxify/events )
1515[ ![ Dependencies Status] ( https://david-dm.org/foxifyjs/events.svg )] ( https://david-dm.org/foxifyjs/events )
You can’t perform that action at this time.
0 commit comments