Skip to content

Commit 602b6c1

Browse files
committed
chore(publish): use yarn publish
1 parent 3e8cdc8 commit 602b6c1

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

circle.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ test:
2222
- codecov
2323

2424
deployment:
25-
npm:
25+
release:
2626
tag: /v[0-9]+(\.[0-9]+)*/
2727
commands:
28-
- npm publish
28+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
29+
- yarn publish --new-version `./scripts/version.js`

example/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"react": "16.0.0-alpha.12",
1414
"react-native":
1515
"https://github.com/expo/react-native/archive/sdk-18.0.1.tar.gz",
16-
"react-native-linkedin": "1.0.31"
16+
"react-native-linkedin": "1.1.0"
1717
}
1818
}

example/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2838,9 +2838,9 @@ [email protected]:
28382838
dependencies:
28392839
eventemitter3 "^2.0.2"
28402840

2841-
react-native-linkedin@1.0.31:
2842-
version "1.0.31"
2843-
resolved "https://registry.yarnpkg.com/react-native-linkedin/-/react-native-linkedin-1.0.31.tgz#f9b20501e22b356bd412385e932a03b5325820ac"
2841+
react-native-linkedin@1.1.0:
2842+
version "1.1.0"
2843+
resolved "https://registry.yarnpkg.com/react-native-linkedin/-/react-native-linkedin-1.1.0.tgz#9fc7b2ab8a6a9a5d4d69e64f8c3ee32a4cda813e"
28442844
dependencies:
28452845
query-string "^5.0.0"
28462846
ramda "^0.24.1"

scripts/version.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env node
2+
3+
/* eslint-disable */
4+
const pkg = require('../package.json')
5+
6+
console.log(pkg.version)
7+
process.exit()

0 commit comments

Comments
 (0)