Skip to content

Commit

Permalink
Merge pull request #336 from IgniteUI/sstoychev/github-actions
Browse files Browse the repository at this point in the history
Switching to GitHub Actions, updating to Angular 12
  • Loading branch information
ChronosSF authored Apr 27, 2021
2 parents 600d073 + fc5ec70 commit 71412e4
Show file tree
Hide file tree
Showing 13 changed files with 5,659 additions and 6,108 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -28,3 +28,10 @@ jobs:
- run: npm run lint
- run: npm run build --if-present
- run: npm run test:lib

- name: Publish to coveralls.io
if: github.repository == 'IgniteUI/igniteui-angular-wrappers' && matrix.node-version == '14.x'
uses: coverallsapp/[email protected]
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ github.token }}
40 changes: 40 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Npm.js deploy

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo ${VERSION}

- run: echo "NG_CLI_ANALYTICS=false" >> $GITHUB_ENV
- run: echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV
- run: npm ci

- run: ng build igniteui-angular-wrappers --prod

# define npm tag
- run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
- run: echo ${NPM_TAG}

# copy readme
- run: cp ../../README.md README.md
working-directory: dist/igniteui-angular-wrappers

# create version and publish it to npmjs
- run: npm version ${VERSION} --no-git-tag-version --save --verbose
working-directory: dist/igniteui-angular-wrappers

- run: npm publish --tag ${NPM_TAG}
working-directory: dist/igniteui-angular-wrappers
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ script:
- npm run build
- cat ./coverage/igniteui-angular-wrappers/lcov.info | coveralls

before_deploy:
#before_deploy:
# package and navigate to dist
- ng build igniteui-angular-wrappers --prod
- cd dist/igniteui-angular-wrappers
#- ng build igniteui-angular-wrappers --prod
#- cd dist/igniteui-angular-wrappers
# update package version
- npm version "$TRAVIS_TAG" --no-git-tag-version --save
#- npm version "$TRAVIS_TAG" --no-git-tag-version --save

deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg=
on:
tags: true
repo: IgniteUI/igniteui-angular-wrappers
branch: master
#deploy:
# provider: npm
# skip_cleanup: true
# email: [email protected]
# api_key:
# secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg=
# on:
# tags: true
# repo: IgniteUI/igniteui-angular-wrappers
# branch: master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ignite UI wrappers for Angular

[![Build Status](https://travis-ci.org/IgniteUI/igniteui-angular-wrappers.svg?branch=master)](https://travis-ci.org/IgniteUI/igniteui-angular-wrappers)
[![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)
[![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)
[![npm version](https://badge.fury.io/js/igniteui-angular-wrappers.svg)](https://badge.fury.io/js/igniteui-angular-wrappers)

Expand Down
11 changes: 7 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": true,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": false
},
"configurations": {
"production": {
Expand All @@ -39,8 +44,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
Expand Down
Loading

0 comments on commit 71412e4

Please sign in to comment.