Skip to content

Commit beace49

Browse files
Create npmpublish.yml
1 parent dffdf97 commit beace49

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/npmpublish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: react-native-flip-toggle-button
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
16+
publish-npm:
17+
needs: build
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v1
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 12
24+
registry-url: https://registry.npmjs.org/
25+
- run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
28+
29+
publish-gpr:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v1
34+
- uses: actions/setup-node@v1
35+
with:
36+
node-version: 12
37+
registry-url: https://npm.pkg.github.com/
38+
scope: '@ashishpandey001'
39+
- run: npm publish
40+
env:
41+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)