File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Npm.js deploy
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - uses : actions/setup-node@v1
13+ with :
14+ node-version : 12
15+ registry-url : ' https://registry.npmjs.org'
16+ - run : echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
17+ - run : echo ${VERSION}
18+
19+ - run : echo "NG_CLI_ANALYTICS=false" >> $GITHUB_ENV
20+ - run : echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV
21+ - run : npm ci
22+
23+ - run : ng build igniteui-angular-wrappers --prod
24+
25+ # define npm tag
26+ - run : if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
27+ - run : echo ${NPM_TAG}
28+
29+ # copy readme
30+ - run : cp ../../README.md README.md
31+ working-directory : dist/igniteui-angular-wrappers
32+
33+ # create version and publish it to npmjs
34+ - run : npm version ${VERSION} --no-git-tag-version --save --verbose
35+ working-directory : dist/igniteui-angular-wrappers
36+
37+ - run : npm publish --tag ${NPM_TAG}
38+ working-directory : dist/igniteui-angular-wrappers
39+ env :
40+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 11# Ignite UI wrappers for Angular
22
3- [ ![ Build Status ] ( https://travis-ci.org /IgniteUI/igniteui-angular-wrappers. svg?branch=master )] ( https://travis-ci.org /IgniteUI/igniteui-angular-wrappers )
3+ [ ![ Node.js CI ] ( https://github.com /IgniteUI/igniteui-angular-wrappers/actions/workflows/node.js.yml/badge. svg )] ( https://github.com /IgniteUI/igniteui-angular-wrappers/actions/workflows/node.js.yml )
44[ ![ Coverage Status] ( https://coveralls.io/repos/github/IgniteUI/igniteui-angular-wrappers/badge.svg?branch=master )] ( https://coveralls.io/github/IgniteUI/igniteui-angular-wrappers?branch=master )
55[ ![ npm version] ( https://badge.fury.io/js/igniteui-angular-wrappers.svg )] ( https://badge.fury.io/js/igniteui-angular-wrappers )
66
You can’t perform that action at this time.
0 commit comments