GithubHelp home page GithubHelp logo

profanis / angular-versions-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ngworker/angular-versions-action

0.0 1.0 0.0 700 KB

Github Action that modifies the package.json and match dependency versions for a given base Angular version

License: MIT License

JavaScript 1.36% TypeScript 98.64%

angular-versions-action's Introduction

GitHub Action - Match Angular Versions

This GitHub Action (written in JavaScript) modifies the root package.json of a project and replaces the version of all Angular related dependencies for given base version.

When necessary it updates the angular.json to use the correct builder.

ngworker

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

  • angular-version: The base Angular version used to match the dependency version. Ex: 8.0.x, 10.0.x. To check the full list of supported versions, see supported versions.
  • root-path: The path to the root folder of the project where the package.json and angular.json files are located. Defaults to ./.

Example workflow - match Angular versions

name: CI workflow

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        angular-version:
          - 6.0.x,
          - 6.1.x,
          - 7.0.x,
          - 7.1.x,
          - 7.2.x,
          - 8.0.x,
          - 8.1.x,
          - 8.2.x,
          - 9.0.x,
          - 9.1.x,
          - 10.0.x,
          - 10.1.x,
          - 10.2.x,
          - 11.0.x,
          - 11.1.x,
          - 11.2.x
          - 12.0.x
          - 12.1.x
          - 12.2.x

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js 12.x
        uses: actions/setup-node@v2
        with:
          node-version: 12.x
      - name: Use Angular ${{ matrix.angular-version }}
        uses: ngworker/angular-versions-action@v4
        with:
          angular-version: ${{ matrix.angular-version }}

      - run: yarn install
      - run: yarn lint
      - run: yarn build
      - run: yarn test

This example use the github matrix to build, lint and test your code against different versions of Angular. This should be specially useful for library authors.

Supported Angular versions

At the moment this actions supports a limited set of Angular versions listed below.

  • 6.0.x,
  • 6.1.x,
  • 7.0.x
  • 7.1.x
  • 7.2.x
  • 8.0.x
  • 8.1.x
  • 8.2.x
  • 9.0.x
  • 9.1.x
  • 10.0.x
  • 10.1.x
  • 10.2.x
  • 11.0.x
  • 11.1.x
  • 11.2.x
  • 12.0.x
  • 12.1.x
  • 12.2.x

Managed packages

The following packages are managed by this action:

  • @angular/animations
  • @angular/cdk
  • @angular/cli
  • @angular/common
  • @angular/compiler
  • @angular/compiler-cli
  • @angular/core
  • @angular-builders/jest
  • @angular-devkit/build-angular
  • @angular-devkit/build-ng-packagr
  • @angular-devkit/schematics-cli
  • @angular/elements
  • @angular/forms
  • @angular/google-maps
  • @angular/material
  • @angular/platform-browser
  • @angular/platform-browser-dynamic
  • @angular/router
  • @angular/youtube-player
  • @types/node
  • codelyzer
  • ng-packagr
  • rxjs
  • tsickle
  • tslib
  • tslint
  • ts-node
  • typescript
  • zone.js

Contributing

We would love you to contribute to @ngworker/angular-versions-action, pull requests are welcome! Please see the CONTRIBUTING.md for more information.

Contributors

Thanks goes to these wonderful people (emoji key):


Nacho Vazquez

๐Ÿ’ฌ ๐Ÿ› ๐Ÿ’ผ ๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ก ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“† ๐Ÿ‘€ ๐Ÿ›ก๏ธ โš ๏ธ ๐Ÿ”ง ๐Ÿ““

Lars Gyrup Brink Nielsen

๐Ÿ› ๐Ÿ’ป ๐Ÿ“– ๐Ÿ’ก ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿง‘โ€๐Ÿซ ๐Ÿ“ฆ ๐Ÿ”Œ ๐Ÿ‘€ โš ๏ธ

Tim Deschryver

๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

License

The scripts and documentation in this project are released under the MIT License

angular-versions-action's People

Contributors

allcontributors[bot] avatar dependabot[bot] avatar layzeedk avatar nachovazquez avatar timdeschryver avatar

Watchers

 avatar

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.