Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3492cef0 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

ci: publish on npmjs registry

parent 7d1fdabe
No related branches found
No related tags found
1 merge request!2Draft: Resolve "ci: create pipeline"
Pipeline #13103 passed
---
image: node:lts-slim
stages:
- test
- build
- deploy
variables:
NPM_ORGANIZATION: lydra
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
before_script:
- npm ci
pages:
stage: build
script:
- npm run build
- mv public public.dist
- mv dist public
artifacts:
paths:
- public
publish:
stage: deploy
needs:
- job: pages
artifacts: true
dependencies:
- pages
script:
- npm config set -- '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
- npm publish --access public
rules:
- if: $CI_COMMIT_TAG
.nvmrc 0 → 100644
v18.12.1
{
"name": "@lydra/slidev-theme-alpaga",
"version": "0.0.1",
"version": "0.0.2",
"description": "Alpaga is a simple and quick to set up theme for [Slidev](https://github.com/slidevjs/slidev). It's ideal for Markdown notes, booklets or cheatsheets as you can easily customize it to your business colors and identity and export to PDF.",
"authors": [
"Celeste Robert",
......
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
],
"buildCommand": "npm run build",
"outputDirectory": "dist"
}
// vite.config.js
// https://vitejs.dev/guide/static-deploy.html#gitlab-pages-and-gitlab-ci
const URL = process.env.BASE_URL || '/';
export default {
base: `${URL}`
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment