diff --git a/.github/workflows/publish-to-npmjs.yaml b/.github/workflows/publish-to-npmjs.yaml new file mode 100644 index 0000000..8d32f0e --- /dev/null +++ b/.github/workflows/publish-to-npmjs.yaml @@ -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}} diff --git a/package.json b/package.json index f91d9e0..4ac54bd 100644 --- a/package.json +++ b/package.json @@ -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" - } -} \ No newline at end of file + "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" + } +}