mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-02 06:40:42 +08:00
chore: workflow
This commit is contained in:
parent
d0cba285ab
commit
7aaa03d4ca
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -45,18 +45,14 @@ jobs:
|
|||||||
cd backend
|
cd backend
|
||||||
SUBSTORE_RELEASE=`node --eval="process.stdout.write(require('./package.json').version)"`
|
SUBSTORE_RELEASE=`node --eval="process.stdout.write(require('./package.json').version)"`
|
||||||
echo "release_tag=$SUBSTORE_RELEASE" >> $GITHUB_OUTPUT
|
echo "release_tag=$SUBSTORE_RELEASE" >> $GITHUB_OUTPUT
|
||||||
- name: Prepare release
|
|
||||||
run: |
|
|
||||||
cd backend
|
|
||||||
pnpm i -D conventional-changelog-cli
|
|
||||||
pnpm run changelog
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: ${{ success() }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
body_path: ./backend/CHANGELOG.md
|
|
||||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||||
|
generate_release_notes: true
|
||||||
files: |
|
files: |
|
||||||
./backend/sub-store.min.js
|
./backend/sub-store.min.js
|
||||||
./backend/dist/sub-store-0.min.js
|
./backend/dist/sub-store-0.min.js
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const { build } = require('esbuild');
|
||||||
|
|
||||||
let content = fs.readFileSync(path.join(__dirname, 'sub-store.min.js'), {
|
let content = fs.readFileSync(path.join(__dirname, 'sub-store.min.js'), {
|
||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
@ -14,10 +14,12 @@ fs.writeFileSync(path.join(__dirname, 'dist/sub-store.no-bundle.js'), content, {
|
|||||||
encoding: 'utf8',
|
encoding: 'utf8',
|
||||||
});
|
});
|
||||||
|
|
||||||
const { build } = require('estrella');
|
|
||||||
build({
|
build({
|
||||||
entry: 'dist/sub-store.no-bundle.js',
|
entryPoints: ['dist/sub-store.no-bundle.js'],
|
||||||
outfile: 'dist/sub-store.bundle.js',
|
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
minify: true,
|
||||||
|
sourcemap: true,
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
|
format: 'cjs',
|
||||||
|
outfile: 'dist/sub-store.bundle.js',
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.117",
|
"version": "2.14.118",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -9,8 +9,7 @@
|
|||||||
"serve": "node sub-store.min.js",
|
"serve": "node sub-store.min.js",
|
||||||
"start": "nodemon -w src -w package.json --exec babel-node src/main.js",
|
"start": "nodemon -w src -w package.json --exec babel-node src/main.js",
|
||||||
"build": "gulp",
|
"build": "gulp",
|
||||||
"bundle": "node bundle.js",
|
"bundle": "node bundle.js"
|
||||||
"changelog": "conventional-changelog -p cli -i CHANGELOG.md -s"
|
|
||||||
},
|
},
|
||||||
"author": "Peng-YM",
|
"author": "Peng-YM",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
@ -38,6 +37,7 @@
|
|||||||
"browser-pack-flat": "^3.4.2",
|
"browser-pack-flat": "^3.4.2",
|
||||||
"browserify": "^17.0.0",
|
"browserify": "^17.0.0",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
|
"esbuild": "^0.19.8",
|
||||||
"eslint": "^8.16.0",
|
"eslint": "^8.16.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-babel": "^8.0.0",
|
"gulp-babel": "^8.0.0",
|
||||||
|
2399
backend/pnpm-lock.yaml
generated
2399
backend/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user