Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup GitHub Actions to auto publish npm package #8

Merged
merged 11 commits into from
Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
release:
types: [ created ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn test
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn publish --registry https://registry.npmjs.org
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
yarn-error.log
dist/
.eslintcache
.eslintcache
.idea/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"email": "karlmarx.webdev@gmail.com"
},
"repository": {
"url": "https://github.com/react-native-navigation-register-screens.git"
"url": "https://github.com/karlmarxlopez/react-native-navigation-register-screens.git"
},
"keywords": [
"react-native",
Expand Down