Skip to content

Commit 8aa2e51

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

File tree

5 files changed

+5955
-4699
lines changed

5 files changed

+5955
-4699
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: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
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)
7-
![status](https://img.shields.io/badge/Status-%20Ready%20for%20Awesome-red.svg)
3+
[![npm version](https://badge.fury.io/js/@luxbit%2Freact-electron-webview.svg)](https://badge.fury.io/js/@luxbit%2Freact-electron-webview)
84

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

117

8+
This repo is a fork of [react-electron-web-view](https://github.com/MarshallOfSound/react-electron-web-view)
9+
1210
## Installation
1311

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.
12+
The easiest way to use react-electron-webview is to install it from NPM and `require` or `import` it in your Electron application.
1513

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.
1714

1815
```
19-
npm install react-electron-web-view --save
16+
npm install @luxbit/react-electron-webview --save
2017
```
2118

2219
Or for the hipsters out there
2320

2421
```
25-
yarn add react-electron-web-view
22+
yarn add @luxbit/react-electron-webview
2623
```
2724

2825

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

3431
```
35-
const WebView = require('react-electron-web-view');
32+
const WebView = require('@luxbit/react-electron-webview');
3633
3734
<WebView src="https://www.google.com" />
3835
```

0 commit comments

Comments
 (0)