Skip to content

Commit f79b178

Browse files
authored
test publish on pr (#26)
* test publish on pr * change token
1 parent 408786c commit f79b178

File tree

5 files changed

+15
-19
lines changed

5 files changed

+15
-19
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ jobs:
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: '16.x'
23-
registry-url: 'https://npm.pkg.github.com'
23+
registry-url: 'https://registry.npmjs.org/'
2424
scope: '@fullstack-devops'
2525

2626
- name: install packages
2727
run: yarn
2828
- name: build applikation
2929
run: yarn run build
30-
31-
# - name: yarn publish
32-
# working-directory: dist/ng-mat-components
33-
# run: yarn publish --access public --new-version ${{ needs.generate_infos.outputs.version }} --no-git-tag-version
34-
# env:
35-
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ jobs:
3737

3838
- name: yarn publish
3939
working-directory: dist/ng-mat-components
40-
run: |
41-
npm version ${{ needs.create_release.outputs.version }}
42-
npm set registry https://registry.npmjs.org/@fullstack-devops
43-
npm publish
40+
run: yarn publish --access public --new-version ${{ needs.create_release.outputs.version }} --no-git-tag-version
4441
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
42+
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_TOKEN }}
4643

4744
publish_gh_release:
4845
runs-on: ubuntu-latest

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fullstack-devops/ng-mat-components",
3-
"version": "0.0.0",
3+
"version": "0.0.0-PLACEHOLDER",
44
"engines": {
55
"node": ">=14.0.0 <17.0.0",
66
"yarn": "^1.22.17",
@@ -20,7 +20,7 @@
2020
"format": "prettier --write .",
2121
"lint": "ng lint"
2222
},
23-
"private": true,
23+
"private": false,
2424
"dependencies": {
2525
"@angular/animations": "~13.3.11",
2626
"@angular/cdk": "13.3.9",

projects/ng-mat-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@fullstack-devops/ng-mat-components",
3-
"version": "0.0.0",
3+
"version": "0.0.0-PLACEHOLDER",
44
"license": "Apache-2.0",
55
"publishConfig": {
6-
"registry": "https://registry.npmjs.org/@fullstack-devops"
6+
"@fullstack-devops:registry": "https://registry.npmjs.org/"
77
},
88
"peerDependencies": {
99
"@angular/common": "^13.0.0",

tsconfig.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"noFallthroughCasesInSwitch": true,
1313
"sourceMap": true,
1414
"paths": {
15-
"ng-mat-components": ["dist/ng-mat-components/ng-mat-components", "dist/ng-mat-components"]
15+
"ng-mat-components": [
16+
"dist/ng-mat-components"
17+
]
1618
},
1719
"declaration": false,
1820
"downlevelIteration": true,
@@ -21,12 +23,15 @@
2123
"importHelpers": true,
2224
"target": "es2017",
2325
"module": "es2020",
24-
"lib": ["es2020", "dom"]
26+
"lib": [
27+
"es2020",
28+
"dom"
29+
]
2530
},
2631
"angularCompilerOptions": {
2732
"enableI18nLegacyMessageIdFormat": false,
2833
"strictInjectionParameters": true,
2934
"strictInputAccessModifiers": true,
3035
"strictTemplates": true
3136
}
32-
}
37+
}

0 commit comments

Comments
 (0)