Skip to content

Commit d228d36

Browse files
Olivier PurayeOlivier Puraye
authored andcommitted
Adds workflow
1 parent 1269ed7 commit d228d36

File tree

5 files changed

+5956
-4697
lines changed

5 files changed

+5956
-4697
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 16
15+
- run: npm ci
16+
- run: npm test
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 16
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# Electron WebView
22

3-
[![Build Status](https://travis-ci.org/MarshallOfSound/react-electron-web-view.svg?branch=master)](https://travis-ci.org/MarshallOfSound/react-electron-web-view)
4-
[![npm version](https://badge.fury.io/js/react-electron-web-view.svg)](https://www.npmjs.com/package/react-electron-web-view)
5-
[![npm](https://img.shields.io/npm/dt/react-electron-web-view.svg?maxAge=2592000)](https://www.npmjs.com/package/react-electron-web-view)
6-
[![license](https://img.shields.io/github/license/MarshallOfSound/react-electron-web-view.svg?maxAge=2592000)](https://github.com/MarshallOfSound/react-electron-web-view/blob/master/LICENSE)
3+
[![npm version](https://badge.fury.io/js/react-electron-webview.svg)](https://www.npmjs.com/package/react-electron-webview)
4+
[![npm](https://img.shields.io/npm/dt/react-electron-webview.svg?maxAge=2592000)](https://www.npmjs.com/package/react-electron-webview)
5+
[![license](https://img.shields.io/github/license/MarshallOfSound/react-electron-webview.svg?maxAge=2592000)](https://github.com/MarshallOfSound/react-electron-webview/blob/master/LICENSE)
76
![status](https://img.shields.io/badge/Status-%20Ready%20for%20Awesome-red.svg)
87

98
__A simple wrapper of the Electron WebView element to allow it's magical props in React__
109

1110

11+
This repo is a fork of [react-electron-web-view](https://github.com/MarshallOfSound/react-electron-web-view)
12+
1213
## Installation
1314

14-
The easiest way to use react-electron-web-view is to install it from NPM and `require` or `import` it in your Electron application.
15+
The easiest way to use react-electron-webview is to install it from NPM and `require` or `import` it in your Electron application.
1516

16-
You can also use the standalone build by including `dist/react-electron-web-view.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.
1717

1818
```
19-
npm install react-electron-web-view --save
19+
npm install @luxbit/react-electron-webview --save
2020
```
2121

2222
Or for the hipsters out there
2323

2424
```
25-
yarn add react-electron-web-view
25+
yarn add @luxbit/react-electron-webview
2626
```
2727

2828

@@ -32,7 +32,7 @@ All events and methods on the WebView element are proxied through react. You
3232
find the documentation on these events and methods [here](https://www.electronjs.org/docs/api/webview-tag)
3333

3434
```
35-
const WebView = require('react-electron-web-view');
35+
const WebView = require('@luxbit/react-electron-webview');
3636
3737
<WebView src="https://www.google.com" />
3838
```

0 commit comments

Comments
 (0)