Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v2
name: Checkout [main]
- name: Checkout [main]
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2

- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install --no-package-lock

- name: Install Dependencies
run: npm install --no-package-lock

- run: npx nx-cloud start-ci-run
- run: npx nx affected --target=build --parallel --max-parallel=3
- run: npx nx affected --target=test --parallel --max-parallel=2
Expand All @@ -31,16 +36,22 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v2
- name: Checkout [main]
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2

- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install --no-package-lock

- name: Install Dependencies
run: npm install --no-package-lock

- run: npx nx-cloud start-ci-run
- run: npx nx affected --target=build --parallel --max-parallel=3
- run: npx nx affected --target=test --parallel --max-parallel=2
Expand All @@ -53,10 +64,15 @@ jobs:
matrix:
agent: [1, 2, 3]
steps:
- uses: actions/checkout@v2
- name: Checkout [main]
uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install --no-package-lock

- name: Install Dependencies
run: npm install --no-package-lock

- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
- name: Checkout [main]
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: GitHub Pages

on:
push:
branches:
- main
pull_request:
types: [closed]

env:
CI: true

jobs:
release:
name: Build & Publish
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout [main]
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Dependencies
run: npm install --no-package-lock

- name: Build & Deploy 🚀
run: npm run build -- --prod --baseHref=/angular-jss/

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: dist/apps/website # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout [main]
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Install Dependencies
run: npm install --no-package-lock

- name: Lint Workspace & Code
run: |
npm run nx -- workspace-lint
npm run affected:lint -- --all

- name: Unit Tests
run: npm run affected:test -- --all

- name: Build, Release on GitHub & Publish to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion libs/angular-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"bugs": {
"url": "https://github.com/design4pro/angular-jss/issues/"
},
"homepage": "https://github.com/design4pro/angular-jss#readme",
"homepage": "https://design4pro.github.io/angular-jss",
"peerDependencies": {
"@angular/common": "^13.2.0",
"@angular/core": "^13.2.0"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "design4pro",
"version": "0.0.0",
"license": "MIT",
"homepage": "https://design4pro.github.io/angular-jss",
"scripts": {
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
"ng": "nx",
Expand Down