Merge pull request #184 from Stremio/npm

Migrate from GitHub packages to NPM
This commit is contained in:
Nikola Hristov 2020-07-16 13:29:29 +03:00 committed by GitHub
commit 1a2f05fa07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17278 additions and 12032 deletions

View file

@ -1,31 +1,19 @@
name: Build
on:
push:
branches:
- '*'
tags-ignore:
- '*'
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout
- uses: actions/setup-node@v1
name: Setup Node
with:
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Install NPM dependencies
run: npm install
- name: Build
run: yarn build
- uses: actions/upload-artifact@v1
name: Upload build artifact
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: stremio-web
path: build

View file

@ -1,29 +1,22 @@
name: Release
on:
push:
branches-ignore:
- '*'
tags:
- '*'
release:
types: [published]
jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout
- uses: actions/setup-node@v1
name: Setup Node
with:
registry-url: 'https://npm.pkg.github.com'
- name: Checkout
uses: actions/checkout@v2
- name: Install NPM dependencies
run: npm install
- name: Build
run: yarn install && yarn build
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: zip -r stremio-web.zip ./build
- name: Upload binaries to release
run: npm run build
- name: Zip build artifact
run: zip -r stremio-web.zip ./build
- name: Upload build artifact to GitHub release assets
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
@ -31,9 +24,9 @@ jobs:
asset_name: stremio-web.zip
tag: ${{ github.ref }}
overwrite: true
- run: |
- name: Upload build artifact to Netlify
run: |
curl -H "Content-Type: application/zip" \
-H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \
--data-binary "@stremio-web.zip" \
https://api.netlify.com/api/v1/sites/stremio-staging.netlify.com/deploys
https://api.netlify.com/api/v1/sites/stremio-development.netlify.com/deploys

View file

@ -1,28 +1,16 @@
name: Test
on:
push:
branches:
- '*'
tags-ignore:
- '*'
on: push
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout
- uses: actions/setup-node@v1
name: Setup Node
with:
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Install NPM dependencies
run: npm install
- name: Test
run: yarn test
run: npm test
- name: Lint
run: yarn lint
run: npm run lint

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
/node_modules
/build
/package-lock.json
/yarn.lock
/npm-debug.log
.DS_Store

View file

@ -1,6 +1,7 @@
# Stremio - The media center you need
![Build](https://github.com/stremio/stremio-web/workflows/Build/badge.svg?branch=development)
![Build](https://github.com/stremio/stremio-web/workflows/Build/badge.svg?branch=development)
[![Netlify](https://api.netlify.com/api/v1/badges/ac26d7ae-d08b-4cc4-a14d-a83ba7c3e8ca/deploy-status)](https://stremio-development.netlify.app)
Stremio is a modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons.
@ -8,24 +9,24 @@ Stremio is a modern media center that's a one-stop solution for your video enter
#### Prerequisites:
* Node.js 10 or higher
* yarn __configured for use with GitHub Packages__
* npm 6 or higher
### Install dependencies:
```bash
yarn install
npm install
```
### Development:
```bash
yarn start
npm start
```
### Production:
```bash
yarn build
npm run build
```
## Screenshots

17241
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

11965
yarn.lock

File diff suppressed because it is too large Load diff