mirror of
https://github.com/SwingTheVine/Wplace-BlueMarble.git
synced 2026-04-20 18:32:04 +00:00
Fixed bug with patch number incrementing
This commit is contained in:
parent
deb852ee55
commit
347c857271
6 changed files with 13 additions and 11 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -29,6 +29,10 @@ jobs:
|
|||
- name: Build userscript
|
||||
run: npm run build
|
||||
|
||||
- name: Get the previous commit message
|
||||
id: get-commit-message
|
||||
run: echo "::set-output name=MSG::$(git log -1 --pretty=%B)"
|
||||
|
||||
- name: Commit and push built script
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
|
|
@ -37,6 +41,6 @@ jobs:
|
|||
git add dist/*.user.js
|
||||
git add BlueMarble.meta.js
|
||||
git add package.json
|
||||
git commit -m "ci: build and deploy userscript [skip ci]" || echo "No changes to commit"
|
||||
git commit -m "Bumped version; ${{ steps.get-commit-message.outputs.MSG }}" || echo "No changes to commit"
|
||||
git push
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Blue Marble
|
||||
// @namespace https://github.com/SwingTheVine/
|
||||
// @version 0.2.1
|
||||
// @version 0.2.2
|
||||
// @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA.
|
||||
// @author SwingTheVine
|
||||
// @license MPL-2.0
|
||||
|
|
|
|||
5
build.js
5
build.js
|
|
@ -3,13 +3,10 @@ import fs from 'fs';
|
|||
import { execSync } from 'child_process';
|
||||
|
||||
try {
|
||||
// Run `npm version patch` synchronously, capturing the output
|
||||
const output = execSync('npm version patch --no-git-tag-version', { stdio: 'inherit' });
|
||||
console.log('Version bumped successfully');
|
||||
const update = execSync('node update-version.js', { stdio: 'inherit' });
|
||||
console.log('Version updated in meta file successfully');
|
||||
} catch (error) {
|
||||
console.error('Failed to bump version:', error);
|
||||
console.error('Failed to update version number:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
2
dist/BlueMarble.user.js
vendored
2
dist/BlueMarble.user.js
vendored
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Blue Marble
|
||||
// @namespace https://github.com/SwingTheVine/
|
||||
// @version 0.2.1
|
||||
// @version 0.2.2
|
||||
// @description A userscript to automate and/or enhance the user experience on Wplace.live. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under the MPL-2.0 license. The "Blue Marble" icon is licensed under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. The image is owned by NASA.
|
||||
// @author SwingTheVine
|
||||
// @license MPL-2.0
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -7,7 +7,7 @@
|
|||
"devDependencies": {
|
||||
"esbuild": "^0.25.0"
|
||||
},
|
||||
"version": "0.0.6"
|
||||
"version": "0.2.2"
|
||||
},
|
||||
"node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.25.8",
|
||||
|
|
@ -467,5 +467,5 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"version": "0.0.6"
|
||||
"version": "0.2.2"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
"name": "wplace-bluemarble",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "node build.js"
|
||||
"build": "node build.js",
|
||||
"patch": "npm version patch --no-git-tag-version && npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.25.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue