This commit is contained in:
parent
20db8a9d56
commit
b130a9a96e
15
.drone.yml
15
.drone.yml
@ -17,7 +17,7 @@ steps:
|
|||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
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}"
|
- SNAPSHOT="$(echo $VERSION)-snapshot.${DRONE_BUILD_NUMBER}"
|
||||||
- echo $VERSION
|
- echo $VERSION
|
||||||
- echo $SNAPSHOT
|
- echo $SNAPSHOT
|
||||||
@ -33,23 +33,26 @@ name: npm-publish-release
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- promote
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
environement:
|
||||||
|
CHANGE: ${CHANGE}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish-release
|
- name: publish-release
|
||||||
image: node:18
|
image: node:18
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
VERSION: ${NEW_VERSION}
|
CHANGE: ${CHANGE}
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
|
- OLD_VERSION=$(cat VERSION 2>/dev/null) || echo "1.0.0"
|
||||||
- echo $NEW_VERSION
|
- echo $CHANGE
|
||||||
- echo $OLD_VERSION
|
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm version $NEW_VERSION
|
- npm version $CHANGE
|
||||||
|
- git push --set-upstream origin `git name-rev --name-only HEAD`
|
||||||
- npm publish
|
- npm publish
|
||||||
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot
|
# - npm dist-tag add @ioprojects/eslint-config@$SNAPSHOT snapshot
|
||||||
|
@ -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.
|
This repository is the NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ioprojects/eslint-config",
|
"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",
|
"description": "NPM package for ESLINT configuration of IO-Projects TypeScript front-end projects",
|
||||||
"author": "IO-Projects <contact@io-projects.com>",
|
"author": "IO-Projects <contact@io-projects.com>",
|
||||||
"license": "SEE LICENSE FILE",
|
"license": "SEE LICENSE FILE",
|
||||||
|
Loading…
Reference in New Issue
Block a user