Skip to content

Commit

Permalink
testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
laimermic committed Nov 30, 2023
1 parent b0bd895 commit bec837a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,28 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: cp README.md dist/README.md
- run: cd dist
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-github:
needs: build
runs-on: ubuntu-latest
environment: GitHub
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: |
echo @ngx-idat-sign:https://npm.pkg.github.com/ > dist/.npmrc
echo '//npm.pkg.github.com/:_authToken=${NPM_TOKEN}' >> dist/.npmrc
- run: cp README.md dist/README.md
- run: cd dist
- run: npm publish
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-idat-sign",
"version": "0.9.3",
"version": "0.9.4",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -18,6 +18,7 @@
"@angular/platform-browser": "^15.1.0",
"@angular/platform-browser-dynamic": "^15.1.0",
"@angular/router": "^15.1.0",
"ngx-idat-sign": "^0.0.1",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-idat-sign-demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": [],
"paths": {
/*"paths": {
"ngx-idat-sign": ["dist"]
}
}*/
},
"files": [
"src/main.ts"
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"paths": {
"ngx-idat-sign": [
"dist"
]
// "ngx-idat-sign": [
// "dist"
// ]
},
"declaration": true,
"downlevelIteration": true,
Expand Down

0 comments on commit bec837a

Please sign in to comment.