Skip to content

Commit 103da23

Browse files
authored
Merge pull request #3 from fullstack-devops/bugfix/polishing
polishing
2 parents 5968ef6 + 171abdd commit 103da23

File tree

7 files changed

+47
-41
lines changed

7 files changed

+47
-41
lines changed

.github/workflows/pull-request.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Build PR
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- "README.md"
7-
- 'docs/**'
8-
- '.github/ISSUE_TEMPLATE/**'
9-
- '.github/PULL_REQUEST_TEMPLATE.md'
105

116
jobs:
127
generate_infos:
@@ -19,14 +14,23 @@ jobs:
1914
needs: generate_infos
2015
steps:
2116
- name: Checkout code
22-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
2318
- name: Setup node
24-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v3
2520
with:
26-
node-version: '16.x'
27-
registry-url: 'https://npm.pkg.github.com'
28-
21+
node-version: "16.x"
22+
registry-url: "https://npm.pkg.github.com"
23+
scope: "@fullstack-devops"
24+
2925
- name: install packages
3026
run: yarn
3127
- name: build applikation
32-
run: yarn run build
28+
run: yarn run build
29+
30+
- name: npm publish
31+
working-directory: dist/ng-mat-components
32+
run: |
33+
npm version ${{ needs.create_release.outputs.version }}
34+
npm publish -dry-run
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
needs: create_release
2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
2525
- name: Setup awesome-ci
2626
uses: fullstack-devops/awesome-ci-action@main
2727
- name: Setup node
28-
uses: actions/setup-node@v2
28+
uses: actions/setup-node@v3
2929
with:
3030
node-version: "16.x"
3131
registry-url: "https://npm.pkg.github.com"
@@ -36,6 +36,10 @@ jobs:
3636
- name: build applikation
3737
run: yarn run build
3838

39+
- name: set publish config
40+
shell: bash
41+
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.GITHUB_TOKEN }}
42+
3943
- name: npm publish
4044
working-directory: dist/ng-mat-components
4145
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Custom
44
/gh-pages-demo
5+
projects/ng-ui-frame/README.md
56

67
# Compiled output
78
/dist

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"ng": "ng",
1111
"start": "ng serve",
12+
"prebuild": "cp README.md projects/ng-mat-components/",
1213
"build": "ng build",
1314
"build:workspace": "ng build --project lib-workspace",
1415
"watch": "ng build --watch --configuration development",

projects/ng-mat-components/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

projects/ng-mat-components/ng-package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"dest": "../../dist/ng-mat-components",
44
"lib": {
55
"entryFile": "src/public-api.ts"
6-
}
7-
}
6+
},
7+
"assets": [
8+
"./fs-mat-components-theme.scss"
9+
]
10+
}
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
{
22
"name": "ng-mat-components",
33
"version": "0.0.0",
4+
"license": "MIT",
45
"peerDependencies": {
5-
"@angular/common": "^13.2.0",
6-
"@angular/core": "^13.2.0"
6+
"@angular/common": "^13.0.0",
7+
"@angular/core": "^13.0.0",
8+
"moment": "^2.29.0",
9+
"@angular/material": ">=13.0.0"
710
},
811
"dependencies": {
912
"tslib": "^2.3.0"
13+
},
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/fullstack-devops/ng-mat-components.git"
17+
},
18+
"homepage": "https://github.com/fullstack-devops/ng-mat-components",
19+
"description": "Zentral component repo for angular applications",
20+
"engines": {
21+
"node": ">= 12.0.0",
22+
"npm": ">= 7.0.0",
23+
"yarn": ">= 1.13.0"
24+
},
25+
"bugs": {
26+
"url": "https://github.com/fullstack-devops/ng-mat-components/issues"
1027
}
1128
}

0 commit comments

Comments
 (0)