add readme and github actions

This commit is contained in:
mrjvs 2023-06-21 14:58:34 +02:00
parent 2f2db1aab8
commit b4656c679a
4 changed files with 68 additions and 2 deletions

29
.github/publish.yml vendored Normal file
View File

@ -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 }}

31
.github/tests.yml vendored Normal file
View File

@ -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

6
README.md Normal file
View File

@ -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

View File

@ -1,6 +1,6 @@
{ {
"name": "providers", "name": "@movie-web/providers",
"version": "0.0.1", "version": "0.0.2",
"description": "Package that contains all the providers of movie-web", "description": "Package that contains all the providers of movie-web",
"main": "./lib/providers.umd.cjs", "main": "./lib/providers.umd.cjs",
"types": "./lib/providers.d.ts", "types": "./lib/providers.d.ts",