diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 00000000000..dc68383c969 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -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}} diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000000..d4e59d2a068 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@wscott-retro:registry=https://npm.pkg.github.com diff --git a/package-lock.json b/package-lock.json index ac539b67e6f..969236cdd6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "primeng", - "version": "17.3.0", + "version": "17.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "primeng", - "version": "17.3.0", + "version": "17.7.0", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@angular-devkit/build-angular": "^17.0.5", diff --git a/package.json b/package.json index 39f37fce55f..0ee2d3a38b1 100755 --- a/package.json +++ b/package.json @@ -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", @@ -89,4 +92,4 @@ "@docsearch/js": "^3.3.4", "esbuild": "^0.19.8" } -} \ No newline at end of file +} diff --git a/src/app/components/package.json b/src/app/components/package.json index 8caabb88986..e616e687bec 100644 --- a/src/app/components/package.json +++ b/src/app/components/package.json @@ -24,4 +24,4 @@ "rxjs": "^6.0.0 || ^7.8.1", "zone.js": "~0.14.0" } -} \ No newline at end of file +}