Code Monkey home page Code Monkey logo

Comments (4)

bishtsaurabh5 avatar bishtsaurabh5 commented on July 19, 2024

I can pick this up after Containerization commit

from ifsc.

Sarthak-Mittal avatar Sarthak-Mittal commented on July 19, 2024

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.

bishtsaurabh5 avatar bishtsaurabh5 commented on July 19, 2024

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.

Sarthak-Mittal avatar Sarthak-Mittal commented on July 19, 2024

@bishtsaurabh5 Awesome work with #29 .

from ifsc.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.