DELIVERY-8: add ci, package stabilisation #1

Merged
EndMove merged 29 commits from DELIVERY-8 into master 2023-06-28 13:26:09 +02:00
3 changed files with 33 additions and 2 deletions
Showing only changes of commit f7df86b0b1 - Show all commits

View File

@ -6,6 +6,9 @@ name: npm-publish-snapshot
trigger: trigger:
event: event:
- push - push
branch:
exclude:
- master
steps: steps:
- name: publish-snapshot - name: publish-snapshot
@ -22,3 +25,31 @@ steps:
- npm version $SNAPSHOT - npm version $SNAPSHOT
- npm publish --tag snapshot - npm publish --tag snapshot
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot # - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot
---
kind: pipeline
type: docker
name: npm-publish-release
trigger:
event:
- push
branch:
- master
steps:
- name: publish-release
image: node:18
environment:
GITEA_TOKEN:
from_secret: gitea_token
VERSION: ${NEW_VERSION}
commands:
- git fetch --tags
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- echo $NEW_VERSION
- echo $OLD_VERSION
- npm ci
- npm version $NEW_VERSION
- npm publish
# - npm dist-tag add @ioprojects/ui-eslint-base@$SNAPSHOT snapshot

View File

@ -15,7 +15,7 @@
}, },
"extends": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:react/recommended", "plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended" "plugin:prettier/recommended"
], ],

2
.npmrc
View File

@ -1,4 +1,4 @@
@ioprojects:registry=https://git.endmove.eu/api/packages/io-projectsofficial/npm/ @ioprojects:registry=https://git.endmove.eu/api/packages/io-projectsofficial/npm/
//git.endmove.eu/api/packages/io-projectsofficial/npm/:_authToken="${GITEA_TOKEN}" //git.endmove.eu/api/packages/io-projectsofficial/npm/:_authToken="${GITEA_TOKEN}"
tag-version-prefix="" tag-version-prefix=""
message="chore(ci): %s :tada:" message="chore(ci): %s"