Updating .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jérémi N ‘EndMove’ 2023-06-28 00:00:51 +02:00
parent 20db8a9d56
commit b130a9a96e
Signed by: EndMove
GPG Key ID: 65C4A02E1F5371A4
3 changed files with 11 additions and 8 deletions

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",