Skip to content

Commit

Permalink
min version
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 1, 2022
1 parent 78e05d7 commit d3daa2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js Package
name: Publish on Release

on:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
const semver = require('semver');
const { version } = JSON.parse(fs.readFileSync('./package.json'));
const latestMajor = semver.major(version);
const fromMajor = latestMajor - parseInt(process.env.MAJOR_DIFF);
const fromMajor = Math.max(latestMajor - parseInt(process.env.MAJOR_DIFF), 0);
return `>=${fromMajor}.0.0 || >=${latestMajor}.0.0-${process.env.PRERELEASE_TAG}`;
- name: Update bug report version
uses: ShaMan123/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabricjs-tagging-ci",
"version": "1.2.1-beta.11",
"version": "1.2.1-beta.12",
"description": "Repo for testing tagging, releasing etc. via CI",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit d3daa2c

Please sign in to comment.