Skip to content

Commit

Permalink
Merge pull request #4 from iJimmyWei/feature/npm-publishing
Browse files Browse the repository at this point in the history
Add automated npm publishing on release
  • Loading branch information
iJimmyWei authored Dec 11, 2022
2 parents 5873a75 + bc5456e commit f27dcbf
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: [created]

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: yarn
- run: yarn 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-signature-pad-v2",
"version": "1.0.1",
"version": "1.1.0",
"description": "React Native wrapper around szimek's Canvas based Signature Pad",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f27dcbf

Please sign in to comment.