Comments (4)
I can pick this up after Containerization commit
from ifsc.
I was trying my hand at this. Build keeps failing, need to fix that. I hope the below script might come in handy
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/setup-node@v1 #this installs node and npm for us
with:
node-version: '12.x'
- uses: actions/cache@v1 # this allows for re-using node_modules caching, making builds a bit faster.
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: |
npm install
npm run-script deploy
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: SHA256:qK2PuGso5dA95xjcEI6ZnX1caMeSm8gtJ1vHV31wpyk
BRANCH: gh-pages
FOLDER: dist/ifsc
from ifsc.
Do you have logs ?
I was also trying to run with the following script and error , Can you help me I do not have much idea abiut node and angular
####################################################################################################
This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ workflows ]
pull_request:
branches: [ workflows ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g @angular/cli #install angular cli
- run: npm link @angular/cli #link angular cli
- run: npm install
- run: ng build
- run: ng test
########################################################################################
Run ng build
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module 'ansi-colors'
Require stack:
- /opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/utilities/color.js
- /opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/lib/init.js
- /opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/bin/ng
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/utilities/color.js:11:20)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/utilities/color.js',
'/opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/lib/init.js',
'/opt/hostedtoolcache/node/12.18.4/x64/lib/node_modules/@angular/cli/bin/ng'
]
}
Error: Process completed with exit code 1.
from ifsc.
@bishtsaurabh5 Awesome work with #29 .
from ifsc.
Related Issues (14)
- Add favicon HOT 4
- Add topic `hacktoberfest` HOT 2
- Add icon for 'View on Google maps' feature HOT 5
- Add content to 'About' page HOT 9
- Containerize the project HOT 3
- Add footer HOT 7
- [feat] message on wrong IFSC input HOT 14
- Add Support for Headless chrome HOT 1
- image in footer not visible HOT 1
- Style 'Search' and 'Clear' buttons HOT 3
- Add spinner on 'Search' button HOT 2
- Add icon (✅,❌) instead of boolean values HOT 3
- Improve bootstrap layout for mobile view HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ifsc.