Skip to content

Commit e56720f

Browse files
Merge pull request #8 from FDiskas/feature/automation
Add github actions and contributors to readme
2 parents 4c999f6 + 68af7ac commit e56720f

File tree

7 files changed

+53
-4
lines changed

7 files changed

+53
-4
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
with:
14+
submodules: recursive
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.x
18+
- run: npm ci
19+
20+
publish-npm:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
submodules: recursive
27+
- uses: actions/setup-node@v2
28+
with:
29+
node-version: 14.x
30+
registry-url: https://registry.npmjs.org
31+
always-auth: true
32+
- run: npm ci
33+
- run: npm version "${GITHUB_REF:11}" --no-git-tag-version
34+
- run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
- uses: akhilmhdh/[email protected]
38+
env:
39+
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "feather"]
22
path = feather
33
url = https://github.com/feathericons/feather.git
4+
branch = master

.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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@ 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+
## Contributors
70+
71+
<!-- readme: contributors -start -->
72+
<!-- 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)