mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #184 from Stremio/npm
Migrate from GitHub packages to NPM
This commit is contained in:
commit
1a2f05fa07
7 changed files with 17278 additions and 12032 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
35
.github/workflows/release.yml
vendored
35
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -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
2
.gitignore
vendored
|
|
@ -1,5 +1,5 @@
|
|||
/node_modules
|
||||
/build
|
||||
/package-lock.json
|
||||
/yarn.lock
|
||||
/npm-debug.log
|
||||
.DS_Store
|
||||
|
|
|
|||
11
README.md
11
README.md
|
|
@ -1,6 +1,7 @@
|
|||
# Stremio - The media center you need
|
||||
|
||||

|
||||

|
||||
[](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
17241
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue