Skip to content

Commit 9a83931

Browse files
committed
feat: Yarn v2 with Pnp support and zero-install
1 parent d72aeb0 commit 9a83931

File tree

1,105 files changed

+34099
-8430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,105 files changed

+34099
-8430
lines changed

.github/workflows/ci.yml

-84
This file was deleted.

.github/workflows/publish.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Publishes a GitHub release and NPM package for
2+
# any tag that is pushed to the repository.
3+
# Tags should be generated automatically by
4+
# manually running the "release" workflow.
5+
name: Publish
6+
7+
on:
8+
push:
9+
tags:
10+
- v*
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Setup node
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: '14'
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Install dependencies
23+
env:
24+
CYPRESS_INSTALL_BINARY: 0
25+
run: yarn install --immutable --immutable-cache
26+
- name: Build
27+
run: yarn build
28+
- name: Release
29+
id: release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # provided by Actions
33+
with:
34+
tag_name: ${{ github.ref }}
35+
release_name: Release ${{ github.ref }}
36+
draft: false
37+
prerelease: false
38+
- name: Upload dist
39+
uses: actions/[email protected]
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
44+
asset_path: dist/media-overlay-library.min.js
45+
asset_name: media-overlay-library.min.js
46+
asset_content_type: application/javascript
47+
- name: Upload changelog
48+
uses: actions/[email protected]
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
53+
asset_path: CHANGELOG.md
54+
asset_name: CHANGELOG.md
55+
asset_content_type: text/markdown
56+
- name: Deploy NPM package
57+
env:
58+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
59+
run: |
60+
if [[ $GITHUB_REF =~ alpha|beta ]]; then
61+
npm publish --tag next
62+
else
63+
npm publish --tag latest
64+
fi

.github/workflows/verify.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Run linting, unit tests, check build is possible.
2+
# Standard requirements that should always be green.
3+
# Tested on NodeJS LTS and current stable.
4+
name: Verify
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
13+
14+
jobs:
15+
verify:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: ['14', '15']
20+
services:
21+
rtsp:
22+
image: steabert/gst-rtsp-launch
23+
ports:
24+
- 8554:8554
25+
steps:
26+
- uses: actions/checkout@v1
27+
- name: Setup node
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- name: Install dependencies
32+
run: yarn install --immutable --immutable-cache
33+
- name: Linting & Unit testing
34+
run: |
35+
yarn lint
36+
yarn test
37+
- name: Build
38+
run: yarn build
39+
- name: Test basic video functionality
40+
run: sbin/test.sh

.gitignore

+11-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ coverage/
77
# Bundles
88
dist/
99

10-
# Dependencies
11-
node_modules/
12-
1310
# Cypress
1411
cypress/videos/
1512
cypress/screenshots/
1613

17-
#Intellij
14+
# IDE
1815
.idea/
16+
.vscode/
17+
18+
# Yarn
19+
.yarn/*
20+
!.yarn/cache
21+
!.yarn/releases
22+
!.yarn/plugins
23+
!.yarn/sdks
24+
!.yarn/versions
25+
node_modules/

0 commit comments

Comments
 (0)