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

View file

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

2
.gitignore vendored
View file

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

View file

@ -1,6 +1,7 @@
# Stremio - The media center you need # 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. 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: #### Prerequisites:
* Node.js 10 or higher * Node.js 10 or higher
* yarn __configured for use with GitHub Packages__ * npm 6 or higher
### Install dependencies: ### Install dependencies:
```bash ```bash
yarn install npm install
``` ```
### Development: ### Development:
```bash ```bash
yarn start npm start
``` ```
### Production: ### Production:
```bash ```bash
yarn build npm run build
``` ```
## Screenshots ## 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