diff --git a/.drone.yml b/.drone.yml index bbee43f..d237ca0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/README.md b/README.md index 85e3c88..6625c7d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index f602a10..dbd2b0f 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "SEE LICENSE FILE",