Skip to content

Commit

Permalink
Copy license and readme to npm package.
Browse files Browse the repository at this point in the history
  • Loading branch information
namitoyokota committed May 4, 2024
1 parent 3a84bb0 commit 11dd456
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 84 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
if: steps.check.outputs.changed == 'true'
run: yarn build:lib

- name: Copy Readme
if: steps.check.outputs.changed == 'true'
run: yarn readme

- name: Copy License
if: steps.check.outputs.changed == 'true'
run: yarn license

- name: Publish to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish ./dist/ngx-notation-reveal
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"watch": "ng build --watch --configuration development",
"build:lib": "ng build ngx-notation-reveal",
"watch:lib": "ng build ngx-notation-reveal --watch --configuration development",
"license": "cp ./LICENSE ./dist/ngx-notation-reveal/LICENSE",
"readme": "cp ./README.md ./dist/ngx-notation-reveal/README.md",
"publish": "npm publish ./dist/ngx-notation-reveal",
"test": "ng test"
},
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-notation-reveal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-notation-reveal",
"version": "1.0.1",
"version": "1.0.2",
"description": "Angular component to add rough notation when element is visible.",
"author": {
"name": "Namito Yokota",
Expand Down
83 changes: 0 additions & 83 deletions projects/ngx-notation-reveal/readme.md

This file was deleted.

0 comments on commit 11dd456

Please sign in to comment.