Skip to content

Commit c2c3b39

Browse files
committed
feat(test): test update script
2 parents e19d592 + 4aaef45 commit c2c3b39

File tree

6 files changed

+85
-37
lines changed

6 files changed

+85
-37
lines changed

.github/workflows/CD.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
- name: Upload NPM
3535
if: steps.semantic-release.outputs.released == 'true'
3636
run: |
37+
pwd
38+
cd ${{ github.workspace }}
3739
npm i
38-
rm -f -- schemas.json
3940
npm run json
4041
jq -c '.version = "steps.semantic-release.outputs.version"' package.json > tmp.$$.json && mv tmp.$$.json package.json
4142
npm publish

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,56 @@
22

33

44

5+
## v3.3.0-rc.10 (2024-01-18)
6+
7+
### Fix
8+
9+
* fix(Actions): test folders ([`88f0b30`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/88f0b3063d850e8f37214e4750b7eee734469251))
10+
11+
12+
## v3.3.0-rc.9 (2024-01-18)
13+
14+
### Fix
15+
16+
* fix(Actions): update working directory ([`3d59b58`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/3d59b586b9730a5f144b19885aeeca656dfe0488))
17+
18+
19+
## v3.3.0-rc.8 (2024-01-18)
20+
21+
### Fix
22+
23+
* fix(GH action): log directoryPath ([`10f1eae`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/10f1eae68802d89dd6f6c7441f52a2b904778fc7))
24+
25+
### Unknown
26+
27+
* Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into next ([`1d25412`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/1d25412394b71c5ddb513871aded5ad8b3246b97))
28+
29+
30+
## v3.3.0-rc.7 (2024-01-18)
31+
32+
### Fix
33+
34+
* fix(GH action): explicit directory ([`43d510b`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/43d510b9639d5db438e2f4a1535fb735ef84dae0))
35+
36+
37+
## v3.3.0-rc.6 (2024-01-18)
38+
39+
### Feature
40+
41+
* feat(GH action): test path.normalize ([`f4cbe47`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/f4cbe47e3dc84ff7e47a276abd6d28580af34406))
42+
43+
44+
## v3.3.0-rc.5 (2024-01-18)
45+
46+
### Feature
47+
48+
* feat(test): test npm i glob ([`368c1da`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/368c1da000bc0d0373b8c129dcf7b25b36930191))
49+
50+
### Unknown
51+
52+
* Merge branch 'next' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into next ([`c68c775`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/c68c775b4eb1e3bd475368fcdb0936db64efda83))
53+
54+
555
## v3.3.0-rc.4 (2024-01-18)
656

757
### Feature

generate_schemas.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ const glob = require("glob");
44
const process = require("process");
55

66
const findDirectoryPath = (targetDirectoryName) => {
7-
console.log("targetDirectoryName", targetDirectoryName);
87
const pathToCheck = path.join(process.cwd(), targetDirectoryName);
9-
console.log("pathToCheck", process.cwd(), pathToCheck);
108
const folders = fs
119
.readdirSync(pathToCheck, { withFileTypes: true })
1210
.filter(
@@ -16,7 +14,6 @@ const findDirectoryPath = (targetDirectoryName) => {
1614
name: folder.name,
1715
path: path.join(pathToCheck, folder.name),
1816
}));
19-
console.log("folders", folders);
2017
const routesDirectory = path.join(folders[0].path, "routes");
2118
return [routesDirectory, folders[0].name];
2219
};
@@ -27,7 +24,7 @@ const outputFile = path.join(process.cwd(), "schemas.json");
2724

2825
function return_json_schema(directoryPath, folder_path, project_name) {
2926
const folders = fs
30-
.readdirSync(directoryPath, { withFileTypes: true })
27+
.readdirSync(path.normalize(directoryPath), { withFileTypes: true })
3128
.filter((folder) => folder.isDirectory())
3229
.map((folder) => ({
3330
name: folder.name,

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
{
2-
"name": "@geode/opengeodeweb-back",
3-
"scripts": {
4-
"json": "node generate_schemas.js"
5-
},
6-
"dependencies": {
7-
"glob": "^10.3.10"
8-
},
9-
"exports": "./schemas.json",
10-
"version": "0.0.0-semantically-released",
11-
"description": "",
12-
"main": "generate_schemas.js",
13-
"repository": {
14-
"type": "git",
15-
"url": "git+https://github.com/Geode-solutions/OpenGeodeWeb-Back.git"
16-
},
17-
"author": {
18-
"name": "Geode-solutions",
19-
"email": "[email protected]",
20-
"url": "https://geode-solutions.com/"
21-
},
22-
"license": "MIT",
23-
"bugs": {
24-
"url": "https://github.com/Geode-solutions/OpenGeodeWeb-Back/issues"
25-
},
26-
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Back",
27-
"publishConfig": {
28-
"access": "public"
29-
},
30-
"files": []
31-
}
2+
"name": "@geode/opengeodeweb-back",
3+
"scripts": {
4+
"json": "node generate_schemas.js"
5+
},
6+
"dependencies": {
7+
"glob": "^10.3.10"
8+
},
9+
"exports": "./schemas.json",
10+
"version": "0.0.0-semantically-released",
11+
"description": "",
12+
"main": "generate_schemas.js",
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/Geode-solutions/OpenGeodeWeb-Back.git"
16+
},
17+
"author": {
18+
"name": "Geode-solutions",
19+
"email": "[email protected]",
20+
"url": "https://geode-solutions.com/"
21+
},
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/Geode-solutions/OpenGeodeWeb-Back/issues"
25+
},
26+
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Back",
27+
"publishConfig": {
28+
"access": "public"
29+
},
30+
"directory": "./src/opengeodeweb_back"
31+
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "OpenGeodeWeb-Back"
8-
version = "3.3.0-rc.4"
8+
version = "3.3.0-rc.10"
99
dynamic = ["dependencies"]
1010
authors = [
1111
{ name="Geode-solutions", email="[email protected]" },

0 commit comments

Comments
 (0)