Skip to content

Commit

Permalink
feat: support Angular 11 (#349)
Browse files Browse the repository at this point in the history
* feat: support Angular 11

* ci: use `npm ci` and do not fetch the main branch

* ci: combine workflow files since they look the same
  • Loading branch information
arturovt authored Dec 13, 2020
1 parent f1f49ac commit 1ff8803
Show file tree
Hide file tree
Showing 9 changed files with 5,390 additions and 4,593 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/build_test.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: Publish
name: ngx-aws-deploy

on:
push:
branches: [ master, beta, main ]
branches:
- main
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Clone repository
uses: actions/checkout@v1
with:
fetch-depth: 1
# `fetch-depth` defaults to 1.
uses: actions/checkout@v2
- name: Cache builder node modules
id: cache
uses: actions/cache@v1
Expand All @@ -29,13 +29,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Get origin main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master
node-version: ${{ matrix.version }}
- name: Install Builder Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
run: npm ci
- name: Symlink dist 🔗
run: npm run symlinks
- name: Tests coverage
Expand Down
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand Down
7 changes: 5 additions & 2 deletions libs/ngx-aws-deploy/src/lib/deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const getFiles = (filesPath: string) => {
});
};

export default createBuilder<any>(
async (builderConfig: Schema, context: BuilderContext): Promise<any> => {
export default createBuilder(
async (
builderConfig: Schema,
context: BuilderContext
): Promise<BuilderOutput> => {
context.reportStatus('Executing deployment');
if (!context.target) {
throw new Error('Cannot deploy the application without a target');
Expand Down
Loading

0 comments on commit 1ff8803

Please sign in to comment.