Skip to content

Commit bffcfd6

Browse files
authored
Publish to NPM (#39)
* feat: add publish npm script * build: version 0.5.1 tagged
1 parent a4e9db9 commit bffcfd6

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/publish.yml

+28
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 }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-idscan-sdk",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "SDK for IDScan.net in React Native",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)