Skip to content

Commit

Permalink
Merge pull request #2 from iJimmyWei/feature/npm-publishing
Browse files Browse the repository at this point in the history
add npm publishing
  • Loading branch information
iJimmyWei authored Dec 11, 2022
2 parents 21e109e + 893c063 commit e3f29e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Package to npmjs
on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-material-dropdown-v2",
"version": "0.11.1",
"version": "0.12.0",
"license": "BSD-3-Clause",
"contributors": [
{
Expand Down

0 comments on commit e3f29e7

Please sign in to comment.