
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
increase-version
Advanced tools
Automaticaly increase version in files (package.json, Dockerfile, yaml)
Automaticaly increase version in
Script find in package.json property version.
const increaseVersion = require('increase-version');
async function increase() {
const pathOfPackageJson = './package.json';
const oldVersion = await increaseVersion.getVersionOfPackageJson(pathOfPackageJson);
const newVersion = increaseVersion.changeVersion(oldVersion, increaseVersion.constants.type.BUILD);
const versions = { old: oldVersion, new: newVersion };
increaseVersion.json(pathOfPackageJson, versions);
// Optional ...
const pathOfDockerfile = './Dockerfile';
increaseVersion.dockerfile(pathOfDockerfile, versions);
// Optional ...
const pathOfTemplateYaml = './kubernetes/dev/template/prototyp-homepage-deployment.yaml';
const pathOfGeneratedYaml = './kubernetes/dev/prototyp-homepage-deployment.yaml';
const yamlProps = {
name: 'my-service-name',
containerPort: 80,
};
increaseVersion.yaml(pathOfTemplateYaml, pathOfGeneratedYaml, versions, yamlProps);
}
increase();
# only package.json
increase-version --package-json=./package.json
# package.json with Dockerfile
increase-version \
--package-json=./package.json \
--dockerfile=./Dockerfile \
--version-up=major
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{name}}
spec:
selector:
matchLabels:
app: {{name}}
template:
metadata:
labels:
app: {{name}}
spec:
containers:
- name: {{name}}
image: my-domain.dev/{{name}}:{{version}}
ports:
- containerPort: {{containerPort}}
env:
- name: NODE_ENV
value: "production"
- name: DB_HOST
value: "xxxx"
- name: DB_NAME
value: "xxxx"
FAQs
Automaticaly increase version in files (package.json, Dockerfile, yaml)
The npm package increase-version receives a total of 23 weekly downloads. As such, increase-version popularity was classified as not popular.
We found that increase-version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.