Add gitlab CI

This commit is contained in:
idotj 2024-02-26 13:55:28 +01:00
parent 580fd5809b
commit 4f8b4c34d2
2 changed files with 307 additions and 303 deletions

12
.gitlab-ci.yml Normal file
View 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

View File

@ -9,13 +9,11 @@ Demo running:
## 📋 Table of contents
- [🐘 Mastodon embed timeline (new v4.2)](#-mastodon-embed-timeline-new-v42)
- [📋 Table of contents](#-table-of-contents)
- [Installation](#installation)
- [Installation](#installation)
- [Download](#download)
- [CDN](#cdn)
- [Package manager](#package-manager)
- [Setup](#setup)
- [Setup](#setup)
- [Initialize](#initialize)
- [Local timeline](#local-timeline)
- [Profile timeline](#profile-timeline)
@ -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