Skip to content

Commit d3cdc50

Browse files
authored
Feat: Publish to NPM (#16)
* build: remove non-scoped name * build: support publish to npm * feat: publish npm workflow * build: upgrade to 1.0.2
1 parent e7ab565 commit d3cdc50

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
environment: deploy
9+
runs-on: ubuntu-latest
10+
11+
name: Publish
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 14
19+
cache: 'yarn'
20+
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Yarn Install
23+
run: yarn install --network-concurrency 1
24+
25+
- name: Publish (NPM)
26+
run: npm publish --access public
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

RNSketchCanvas.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pod::Spec.new do |s|
66
s.name = 'RNSketchCanvas'
77
s.version = package['version']
88
s.summary = package['description']
9-
s.homepage = 'https://github.com/creambyemute/react-native-sketch-canvas'
9+
s.homepage = 'https://github.com/sourcetoad/react-native-sketch-canvas'
1010
s.license = package['license']
1111
s.authors = package['author']
1212
s.source = { :git => package['repository']['url'] }

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/sourcetoad/react-native-sketch-canvas"
66
},
7-
"version": "1.0.1",
7+
"version": "1.0.2",
88
"description": "react-native-sketch-canvas allows you to draw / sketch on both iOS and Android devices and sync the drawing data between users. Of course you can save as image.",
99
"author": "Terry Lin",
1010
"main": "lib/commonjs/index",
@@ -17,7 +17,6 @@
1717
"lib",
1818
"android",
1919
"ios",
20-
"cpp",
2120
"RNSketchCanvas.podspec",
2221
"!lib/typescript/example",
2322
"!android/build",

0 commit comments

Comments
 (0)