Skip to content

Commit

Permalink
build: publish the themes to npmjs
Browse files Browse the repository at this point in the history
fix for issue primefaces#62
  • Loading branch information
kvddtw7 committed Mar 26, 2024
1 parent 07ee7cf commit 9806e41
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 23 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-to-npmjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# see https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish Package to npmjs
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
50 changes: 27 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
{
"name": "primeng-sass-theme",
"version": "17.12.0",
"description": "PrimeNG Sass Theme",
"homepage": "https://primeng.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/primefaces/primeng-sass-theme.git"
},
"keywords": [
"primeng",
"angular",
"ui framework",
"component framework",
"ui library",
"component library",
"material",
"bootstrap"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/primefaces/primeng-sass-theme/issues"
}
}
"name": "primeng-sass-theme",
"version": "17.12.0",
"description": "PrimeNG Sass Theme",
"homepage": "https://primeng.org/",
"repository": {
"type": "git",
"url": "git+https://github.com/primefaces/primeng-sass-theme.git"
},
"keywords": [
"primeng",
"angular",
"ui framework",
"component framework",
"ui library",
"component library",
"material",
"bootstrap"
],
"license": "MIT",
"files": [
"themes/**/*",
"theme-base/**/.*"
],
"bugs": {
"url": "https://github.com/primefaces/primeng-sass-theme/issues"
}
}

0 comments on commit 9806e41

Please sign in to comment.