Skip to content

Commit 7a9d849

Browse files
committed
Add github actions and contributors to readme
1 parent 4c999f6 commit 7a9d849

File tree

8 files changed

+64
-4
lines changed

8 files changed

+64
-4
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Package
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 14.x
16+
- run: npm ci
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 14.x
26+
registry-url: https://registry.npmjs.org
27+
always-auth: true
28+
- run: npm ci
29+
- run: npm run prepublish
30+
- run: npm version "${GITHUB_REF:11}" --no-git-tag-version
31+
- run: npm publish --access public
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/thanks.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
contrib-readme-job:
5+
runs-on: ubuntu-latest
6+
name: Contrib in readme
7+
steps:
8+
- name: Contribute List
9+
uses: akhilmhdh/[email protected]
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules/
2-
src/tsdoc-metadata.json
32
typings/
43
*.log
54
.DS_Store
65
lib/
6+
src/

.gitmodules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[submodule "feather"]
22
path = feather
33
url = https://github.com/feathericons/feather.git
4+
branch = master
5+

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ api-extractor.json
33
tsconfig.json
44
.svgrrc.js
55
.gitmodules
6+
src/

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,17 @@ Any [Svg property](https://github.com/react-native-community/react-native-svg#co
6161
| **`stroke`** | The stroke prop refers to the color outline the icon. | `"currentColor"` |
6262
| **`strokeWidth`** | The strokeWidth prop specifies the width of the outline on the icon. | `2` |
6363
| **`fill`** | The fill prop refers to the color inside the icon. | `"none"` |
64+
65+
### Author
66+
<!-- readme: yigithanyucedag -start -->
67+
<!-- readme: yigithanyucedag -end -->
68+
69+
## Collaborators
70+
71+
<!-- readme: collaborators -start -->
72+
<!-- readme: collaborators -end -->
73+
74+
## Contributors
75+
76+
<!-- readme: contributors -start -->
77+
<!-- readme: contributors -end -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"typings": "lib/react-native-feather.d.ts",
77
"scripts": {
88
"prepare-icons": "git submodule update && svgr --native --icon --typescript -d src/icons feather/icons",
9-
"prepublish": "npm run prepare-icons && tsc -p tsconfig.json && npx api-extractor run --local && rimraf typings"
9+
"prepublish": "npm run prepare-icons && tsc -p tsconfig.json && npx api-extractor run --local && rimraf typings src"
1010
},
1111
"repository": {
1212
"type": "git",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
// Change this to match your project
32
"include": ["src/icons/*"],
43
"compilerOptions": {
54
"target": "ESNext",
@@ -10,4 +9,4 @@
109
"outDir": "lib",
1110
"declarationDir": "typings"
1211
}
13-
}
12+
}

0 commit comments

Comments
 (0)