DELIVERY-8: add ci, package stabilisation #1
15
.drone.yml
15
.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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user