add readme and github actions
This commit is contained in:
parent
2f2db1aab8
commit
b4656c679a
|
@ -0,0 +1,29 @@
|
|||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: npm
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Install packages
|
||||
run: npm ci
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@ -0,0 +1,31 @@
|
|||
name: Testing
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
testing:
|
||||
name: Testing
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install packages
|
||||
run: npm install
|
||||
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
|
||||
- name: Run linting
|
||||
run: npm run lint
|
|
@ -0,0 +1,6 @@
|
|||
# @movie-web/providers
|
||||
|
||||
package that holds all providers of movie-web.
|
||||
Feel free to use for your own projects.
|
||||
|
||||
> This package is still WIP
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "providers",
|
||||
"version": "0.0.1",
|
||||
"name": "@movie-web/providers",
|
||||
"version": "0.0.2",
|
||||
"description": "Package that contains all the providers of movie-web",
|
||||
"main": "./lib/providers.umd.cjs",
|
||||
"types": "./lib/providers.d.ts",
|
||||
|
|
Loading…
Reference in New Issue