From b4656c679a437219d5968c48fb35a6c0603657ea Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 21 Jun 2023 14:58:34 +0200 Subject: [PATCH] add readme and github actions --- .github/publish.yml | 29 +++++++++++++++++++++++++++++ .github/tests.yml | 31 +++++++++++++++++++++++++++++++ README.md | 6 ++++++ package.json | 4 ++-- 4 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 .github/publish.yml create mode 100644 .github/tests.yml create mode 100644 README.md diff --git a/.github/publish.yml b/.github/publish.yml new file mode 100644 index 0000000..9415e70 --- /dev/null +++ b/.github/publish.yml @@ -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 }} diff --git a/.github/tests.yml b/.github/tests.yml new file mode 100644 index 0000000..ec4bd6d --- /dev/null +++ b/.github/tests.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..f29cb15 --- /dev/null +++ b/README.md @@ -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 diff --git a/package.json b/package.json index cff136d..732d8c5 100644 --- a/package.json +++ b/package.json @@ -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",