-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Set to true to add reviewers to pull requests | ||
addReviewers: false | ||
|
||
# Set to true to add assignees to pull requests | ||
addAssignees: true | ||
|
||
# A list of reviewers to be added to pull requests (GitHub user name) | ||
# reviewers: | ||
# - reviewerA | ||
|
||
|
||
# A number of reviewers added to the pull request | ||
# Set 0 to add all the reviewers (default: 0) | ||
# numberOfReviewers: 0 | ||
|
||
# A list of assignees, overrides reviewers if set | ||
assignees: | ||
- fleonhard | ||
|
||
# A number of assignees to add to the pull request | ||
# Set to 0 to add all of the assignees. | ||
# Uses numberOfReviewers if unset. | ||
numberOfAssignees: 0 | ||
|
||
# A list of keywords to be skipped the process that add reviewers if pull requests include it | ||
# skipKeywords: | ||
# - wip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Build and deploy | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
concurrency: main | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
buildAndDeploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2.4.1 | ||
with: | ||
node-version: 14.18.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Cache node modules | ||
id: cache-nodemodules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install Dependencies | ||
if: | ||
steps.cache-nodemodules.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
# - name: Lint | ||
# run: npm run lint | ||
|
||
- name: Test | ||
run: npm run test -- --configuration production | ||
|
||
- name: Build | ||
run: npm run build -- --configuration production | ||
|
||
- name: Configure Git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.name 'fleonhard' | ||
git config --global user.email 'fleonhard@users.noreply.github.com' | ||
- name: Update Version | ||
run: echo "VERSION=$(npm version patch -m '[RELEASE] %s')" >> $GITHUB_ENV | ||
|
||
- name: Generate Changelog | ||
run: | | ||
git log --pretty=format:"%s" "$(git describe --tags --abbrev=0 @^)"..@ > CHANGELOG.md | ||
git add CHANGELOG.md | ||
git commit --amend -m "[RELEASE] ${{ env.VERSION }}" | ||
- name: Upload Changes | ||
run: | | ||
git push | ||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
draft: false | ||
prerelease: false | ||
tag_name: ${{ env.VERSION }} | ||
release_name: ${{ env.VERSION }} | ||
body_path: CHANGELOG.md | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
registry-url: https://npm.pkg.github.com | ||
scope: '@octocat' | ||
|
||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,4 @@ import { Component } from '@angular/core'; | |
}) | ||
export class AppComponent { | ||
title = 'NodeRedUI1'; | ||
|
||
console. | ||
|
||
} |