Add gitlab CI
This commit is contained in:
parent
580fd5809b
commit
4f8b4c34d2
12
.gitlab-ci.yml
Normal file
12
.gitlab-ci.yml
Normal file
@ -0,0 +1,12 @@
|
||||
image: node:latest
|
||||
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "@scope:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc
|
||||
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
|
||||
- npm publish
|
||||
environment: production
|
10
README.md
10
README.md
@ -9,8 +9,6 @@ Demo running:
|
||||
|
||||
## 📋 Table of contents
|
||||
|
||||
- [🐘 Mastodon embed timeline (new v4.2)](#-mastodon-embed-timeline-new-v42)
|
||||
- [📋 Table of contents](#-table-of-contents)
|
||||
- [Installation](#installation)
|
||||
- [Download](#download)
|
||||
- [CDN](#cdn)
|
||||
@ -23,10 +21,6 @@ Demo running:
|
||||
- [Customize](#customize)
|
||||
- [API](#api)
|
||||
- [Examples](#examples)
|
||||
- [🌐 Browser support](#-browser-support)
|
||||
- [🚀 Improve me](#-improve-me)
|
||||
- [⚖️ License](#️-license)
|
||||
- [💬 FAQ](#-faq)
|
||||
|
||||
## Installation
|
||||
|
||||
@ -68,9 +62,7 @@ Now call the CSS and JS files in your HTML page using the `<link>` and `<script>
|
||||
This option allows you to get started quickly without the need to upload any files into your server.
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@idotj/mastodon-embed-timeline@4.2.0/dist/mastodon-timeline.min.css" integrity="sha256-RS5EmHN6wbvM+CqlWZmYPJ+Yh6BhLP/lmz646sBzwq0=" crossorigin="anonymous" />
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/@idotj/mastodon-embed-timeline@4.2.0/dist/mastodon-timeline.umd.js" integrity="sha256-4a8ZoATaIg72pDzQNp97w0/M8EXBiPqHUAPC88MnYN4=" crossorigin="anonymous"></script>
|
||||
JS and CSS files available soon!
|
||||
```
|
||||
|
||||
### Package manager
|
||||
|
Loading…
x
Reference in New Issue
Block a user