diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3909f85 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm install + - run: npm run build + - run: npm test + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4a81389..2f05de3 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,9 @@ typings/ .fusebox/ # DynamoDB Local files -.dynamodb/ \ No newline at end of file +.dynamodb/ + +# Do not version dist +dist + +.DS_Store \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 7ed3cf2..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "standard.autoFixOnSave": true, - "editor.tabSize": 2, -} \ No newline at end of file diff --git a/ATTRIBUTION b/ATTRIBUTION deleted file mode 100644 index d271290..0000000 --- a/ATTRIBUTION +++ /dev/null @@ -1 +0,0 @@ -Video and fallback image provided by Christophe Tauziet at https://vimeo.com/user27974867 \ No newline at end of file diff --git a/LICENSE b/LICENSE index f20805a..c1798bb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Blake Wilson +Copyright (c) 2021 Blake Wilson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 4282ebf..f04780d 100644 --- a/README.md +++ b/README.md @@ -2,54 +2,72 @@ A minimal vanilla JavaScript video background plugin. -# Working With Wordpress +## Compatibility + +- All modern web browsers +- IE 11+ +- All mobile web browsers that support autoplaying HTML5 `