chore: release-please
This commit is contained in:
parent
dcdc891c94
commit
ef20ee6ffa
42
.github/workflows/release-please.yml
vendored
Normal file
42
.github/workflows/release-please.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
name: release-please
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
|
||||
- uses: GoogleCloudPlatform/release-please-action@v3
|
||||
id: release
|
||||
with:
|
||||
token: ${{secrets.FLECKS_GITHUB_TOKEN}}
|
||||
command: manifest
|
||||
|
||||
- if: ${{steps.release.outputs.releases_created}}
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- if: ${{steps.release.outputs.releases_created}}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
cache: "npm"
|
||||
node-version: 18
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- if: ${{steps.release.outputs.releases_created}}
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- if: ${{steps.release.outputs.releases_created}}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
run: npm run publish
|
1
build/.release-please.manifest.json
Normal file
1
build/.release-please.manifest.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"packages/build": "3.2.4","packages/core": "3.2.1","packages/create-app": "3.2.4","packages/create-fleck": "3.2.4","packages/db": "3.2.4","packages/docker": "3.2.4","packages/dox": "3.2.4","packages/electron": "3.2.4","packages/fleck": "3.2.4","packages/passport": "3.2.4","packages/passport-local": "3.2.4","packages/passport-local-react": "3.2.4","packages/passport-react": "3.2.4","packages/react": "3.2.4","packages/react-redux": "3.2.4","packages/redis": "3.2.4","packages/redux": "3.2.4","packages/repl": "3.2.4","packages/server": "3.2.4","packages/session": "3.2.4","packages/socket": "3.2.4","packages/web": "3.2.4"}
|
25
build/publish.js
Normal file
25
build/publish.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
const {join} = require('path');
|
||||
|
||||
const {processCode, spawnWith} = require('@flecks/core/src/server');
|
||||
const {glob} = require('glob');
|
||||
|
||||
const {
|
||||
FLECKS_CORE_ROOT = process.cwd(),
|
||||
} = process.env;
|
||||
|
||||
const args = ['npm', 'publish', '--provenance'];
|
||||
const {workspaces} = require(join(FLECKS_CORE_ROOT, 'package.json'));
|
||||
|
||||
(async () => {
|
||||
const paths = (await Promise.all(workspaces.map((path) => glob(join(FLECKS_CORE_ROOT, path)))))
|
||||
.flat();
|
||||
const cpus = new Array(require('os').cpus().length).fill(Promise.resolve(0));
|
||||
paths.forEach((cwd, i) => {
|
||||
// then= :)
|
||||
cpus[i % cpus.length] = cpus[i % cpus.length]
|
||||
.then(async (code) => (
|
||||
(await processCode(spawnWith(args, {cwd: join(cwd, 'dist', 'fleck')}))) || code
|
||||
));
|
||||
});
|
||||
process.exitCode = (await Promise.all(cpus)).find((code) => code !== 0) || 0;
|
||||
})();
|
28
build/release-please-config.json
Normal file
28
build/release-please-config.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"bootstrap-sha": "64e1d179c7eef82ea58b6622975bf8df78ba291e",
|
||||
"packages": {
|
||||
"packages/build": {},
|
||||
"packages/core": {},
|
||||
"packages/create-app": {},
|
||||
"packages/create-fleck": {},
|
||||
"packages/db": {},
|
||||
"packages/docker": {},
|
||||
"packages/dox": {},
|
||||
"packages/electron": {},
|
||||
"packages/fleck": {},
|
||||
"packages/passport": {},
|
||||
"packages/passport-local": {},
|
||||
"packages/passport-local-react": {},
|
||||
"packages/passport-react": {},
|
||||
"packages/react": {},
|
||||
"packages/react-redux": {},
|
||||
"packages/redis": {},
|
||||
"packages/redux": {},
|
||||
"packages/repl": {},
|
||||
"packages/server": {},
|
||||
"packages/session": {},
|
||||
"packages/socket": {},
|
||||
"packages/web": {}
|
||||
},
|
||||
"plugins": ["node-workspace"]
|
||||
}
|
|
@ -14,6 +14,7 @@
|
|||
"dox:serve": "flecks dox docusaurus && cd website && DOCUSAURUS_GENERATED_FILES_DIR_NAME=node_modules/.cache/docusaurus node_modules/.bin/docusaurus build --no-minify --out-dir ../dox-tmp && node_modules/.bin/docusaurus serve --dir ../dox-tmp",
|
||||
"dox": "flecks dox docusaurus && cd website && DOCUSAURUS_GENERATED_FILES_DIR_NAME=node_modules/.cache/docusaurus node_modules/.bin/docusaurus",
|
||||
"lint": "node build/tasks lint",
|
||||
"publish": "node build/publish",
|
||||
"test": "node build/tasks -- test -t 300000"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user