Skip to content

Commit

Permalink
chore: publish temp
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Dec 4, 2024
1 parent 402e26b commit ea7ef20
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
strategy:
matrix:
include:
- package: "@itowns/geographic"
- package: "@gchoqueux/geographic"
path: "Geographic"
- package: "itowns"
path: "Main"
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
cp -R buildDocs itowns/docs
# When deploying a release, we copy itowns bundles in dev folder to be published on
# iTowns/itowns.github.io. This is because we can't publish both a release version
# gchoqueux/itowns.github.io. This is because we can't publish both a release version
# (in itowns/ folder) and a @next version (in itowns/dev folder) at the same time.
- name: add dev bundle if release
if: ${{ startsWith(github.event.head_commit.message, 'release v' ) }}
Expand All @@ -253,7 +253,7 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: iTowns/itowns.github.io
external_repository: gchoqueux/itowns.github.io
publish_dir: ./itowns
destination_dir: ./itowns
publish_branch: master
Expand All @@ -263,12 +263,12 @@ jobs:
- name: Deploy Dev to itowns.github.io
# Prevent deploying @next version when a release is done. Doing so would cause an issue,
# since it is not possible to use the same deploy key to simultaneously deploy two different
# folders on iTowns/itowns.github.io (the release bundle on previous step and this one.
# folders on gchoqueux/itowns.github.io (the release bundle on previous step and this one.
if: ${{ !startsWith(github.event.head_commit.message, 'release v' ) }}
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: iTowns/itowns.github.io
external_repository: gchoqueux/itowns.github.io
publish_dir: ./itowns
destination_dir: ./itowns/dev
publish_branch: master
Expand Down
3 changes: 3 additions & 0 deletions config/babel-register/babel-hooks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ async function transpile(source, context) {
* the Node.js default resolve hook after the last user-supplied resolve hook
*/
export async function resolve(specifier, context, nextResolve) {
if (specifier == '@itowns/geographic') {
specifier = '@gchoqueux/geographic';
}
// Try to resolve the path of an imported module.
// If the resolver failed, retry substituting the extension with '.ts'.
try {
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/Geographic/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@itowns/geographic",
"name": "@gchoqueux/geographic",
"version": "2.44.2",
"description": "Geodesy",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/Main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepublishOnly": "npx copyfiles -u 1 \"../../examples/**/*\" ./examples/ && npx copyfiles -u 1 \"../../docs/**/*\" ./docs/ && npx copyfiles -u 1 \"../../dist/**/*\" ./dist/ ",
"postpublish": "node clean.cjs",
"publish-next": "npm version prerelease --preid next && npm run update-package",
"update-package": "npm remove @itowns/geographic && npm install @itowns/geographic@$npm_package_version --save"
"update-package": "npm remove @gchoqueux/geographic && npm install @gchoqueux/geographic@$npm_package_version --save"
},
"c8": {
"exclude": [
Expand All @@ -47,7 +47,7 @@
"url": "https://github.com/iTowns/itowns/issues"
},
"dependencies": {
"@itowns/geographic": "^2.44.2",
"@gchoqueux/geographic": "^2.44.2",
"@mapbox/mapbox-gl-style-spec": "^13.28.0",
"@mapbox/vector-tile": "^2.0.3",
"@tmcw/togeojson": "^5.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/Widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"url": "https://github.com/itowns/itowns/issues"
},
"dependencies": {
"@itowns/geographic": "^2.44.2",
"@gchoqueux/geographic": "^2.44.2",
"itowns": "^2.44.2"
},
"homepage": "https://itowns.github.io/"
Expand Down

0 comments on commit ea7ef20

Please sign in to comment.