Skip to content

Commit

Permalink
ci: Dynamically reading package.json instead of statically injecting …
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
steilerDev committed Aug 28, 2023
1 parent 46e7ccf commit 80cfa9b
Show file tree
Hide file tree
Showing 22 changed files with 1,314 additions and 651 deletions.
5 changes: 0 additions & 5 deletions .github/actions/release/app-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,3 @@ runs:
- id: setup-app-artifact
shell: bash
run: (cd ${{ inputs.release-dir }}/app; tar --strip-components 1 -xf *.tgz package/; rm -f *.tgz;)
- id: generate-source-map
shell: bash
run: (cd ${{ inputs.release-dir }}; npx backtrace-js process app/bin/)


144 changes: 0 additions & 144 deletions .github/actions/release/app-setup/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .github/actions/release/app-setup/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"description": "dependencies for releasing the npm application through semantic release",
"devDependencies": {
"@google/semantic-release-replace-plugin": "^1.2.0",
"@semantic-release/release-notes-generator": "^11.0.3",
"conventional-changelog": "^4.0.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
Expand Down
20 changes: 0 additions & 20 deletions .github/actions/release/app-setup/releaserc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
{
"plugins": [
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["app/bin/lib/package.js"],
"from": "export const VERSION = .*$",
"to": "export const VERSION = `${nextRelease.version}`;",
"results": [
{
"file": "app/bin/lib/package.js",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],[
"@semantic-release/npm",
{
"npmPublish": true,
Expand Down
1 change: 1 addition & 0 deletions .vscode/icloud-photos-sync.cspell
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pano
parens
photoshop
photoslibrary
postbuild
prerequest
pymdownx
Qtpvztd
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"--runInBand",
"--config", "jest.config.json",
//"--detectOpenHandles",
"test/unit/sync-engine.test.ts"
"test/unit/resources.resource-manager.test.ts"
],
"env": {
"NODE_NO_WARNINGS": "1"
Expand Down
1 change: 0 additions & 1 deletion app/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"!src/main.ts",
"!src/app/event/**/*",
"!src/app/error/**/*",
"!src/lib/package.ts",
"!src/lib/photos-library/model/photos-entity.ts"
],
"coverageProvider": "v8",
Expand Down
4 changes: 3 additions & 1 deletion app/knip.config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"eslint-plugin-tsdoc", // Loaded by eslint.config.json
"ts-json-schema-generator", // Loaded by 'build-schema' script
"typedoc-plugin-markdown", // Loaded by 'typedoc' script
"typedoc-github-wiki-theme" // Loaded by 'typedoc' script
"typedoc-github-wiki-theme", // Loaded by 'typedoc' script
"@backtrace-labs/javascript-cli" // Loaded by 'postbuild' script
],
"ignoreBinaries": [ // Not sure why they are reported as unused
"backtrace-js", // Loaded by 'postbuild' script
"eslint.config.json",
"package.json"
]
Expand Down

0 comments on commit 80cfa9b

Please sign in to comment.