Skip to content

Commit

Permalink
package init
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Scott authored and Wayne Scott committed Feb 21, 2024
1 parent 27065cf commit 4745d44
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 21
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@wscott-retro:registry=https://npm.pkg.github.com
4 changes: 2 additions & 2 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"type": "git",
"url": "https://github.com/primefaces/primeng.git"
},
"publishConfig": {
"@wscott-retro:registry": "https://npm.pkg.github.com"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.0.5",
"@angular-eslint/eslint-plugin": "17.1.1",
Expand Down Expand Up @@ -89,4 +92,4 @@
"@docsearch/js": "^3.3.4",
"esbuild": "^0.19.8"
}
}
}
2 changes: 1 addition & 1 deletion src/app/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"rxjs": "^6.0.0 || ^7.8.1",
"zone.js": "~0.14.0"
}
}
}

0 comments on commit 4745d44

Please sign in to comment.