[go: up one dir, main page]

Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo committed Jun 11, 2021
1 parent e269e2d commit 727f621
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release package to npmjs
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- run: npm install --no-save
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Run unit tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '15']
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install --no-save
- run: npm test
18 changes: 18 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update readme.io documentation
on:
push:
branches:
- master
jobs:
update-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update readme.io documentation
uses: apivideo/readmeio-document-sync-action@1.0
with:
document-slug: hlsjs-analytics-plugin
markdown-file-path: README.md
readme-io-api-key: ${{ secrets.README_IO_API_KEY }}
make-relative-links-absolute: true

0 comments on commit 727f621

Please sign in to comment.