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 11 additions and 8 deletions
Showing only changes of commit b130a9a96e - Show all commits

View File

@ -17,7 +17,7 @@ steps:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- export VERSION=$(node -p "require('./package.json').version") || echo "1.0.0"
- SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
- echo $VERSION
- echo $SNAPSHOT
@ -33,23 +33,26 @@ name: npm-publish-release
trigger:
event:
- push
- promote
branch:
- master
environement:
CHANGE: ${CHANGE}
steps:
- name: publish-release
image: node:18
environment:
GITEA_TOKEN:
from_secret: gitea_token
VERSION: ${NEW_VERSION}
CHANGE: ${CHANGE}
commands:
- git fetch --tags
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
- echo $NEW_VERSION
- echo $OLD_VERSION
- echo $CHANGE
- npm ci
- npm version $NEW_VERSION
- npm version $CHANGE
- git push --set-upstream origin `git name-rev --name-only HEAD`
- npm publish
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot

View File

@ -1,4 +1,4 @@
# ioprojects-ui-eslint
# eslint-config
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.

View File

@ -1,6 +1,6 @@
{
"name": "@ioprojects/eslint-config",
"version": "1.0.4",
"version": "1.0.1",
"description": "NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects",
"author": "IO-Projects <contact@io-projects.com>",
"license": "SEE LICENSE FILE",