GitHub Action
Match Angular Versions
DISCLAIMER: THIS ACTION IS HIGHLY EXPERIMENTAL.
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.
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.
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.
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
angular-version:
[
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
]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use Angular ${{ matrix.angular-version }}
uses: ngworker/angular-versions-action@v1
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.
At the moment this actions supports a limited set of Angular versions listed below.
- 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
We would love you to contribute to @ngworker/angular-versions-action
, pull requests are welcome! Please see the CONTRIBUTING.md for more information.
Thanks goes to these wonderful people (emoji key):
Nacho Vazquez π¬ π πΌ π» π π‘ π€ π π§ π π π‘οΈ |
Lars Gyrup Brink Nielsen π π» π π‘ π€ π π§ π§βπ« π¦ π π |
This project follows the all-contributors specification. Contributions of any kind welcome!
The scripts and documentation in this project are released under the MIT License