From b3b1fdb267147f1892b74ba7c8958d7e1ddc6366 Mon Sep 17 00:00:00 2001 From: Olivier Lange Date: Thu, 7 Dec 2023 22:13:46 +0100 Subject: [PATCH] Adds NPMRC substitute for deployment on Netlify Inspiration: see https://www.mikecoutermarsh.com/using-github-package-registry-with-netlify/ --- .npmrc.netlify | 2 ++ netlify.toml | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .npmrc.netlify create mode 100644 netlify.toml diff --git a/.npmrc.netlify b/.npmrc.netlify new file mode 100644 index 0000000..0ae9e79 --- /dev/null +++ b/.npmrc.netlify @@ -0,0 +1,2 @@ +@orgname:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..4c84e2b --- /dev/null +++ b/netlify.toml @@ -0,0 +1,2 @@ +[build.environment] + NPM_CONFIG_USERCONFIG = ".npmrc.netlify" diff --git a/package-lock.json b/package-lock.json index feca78a..b5c1771 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@uzufly/cesium-ifc-showcase", - "version": "0.2.4", + "version": "0.2.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@uzufly/cesium-ifc-showcase", - "version": "0.2.4", + "version": "0.2.5", "license": "Apache-2.0", "dependencies": { "@uzufly/cesium-ifc-viewer": "^0.13.1" diff --git a/package.json b/package.json index e9a9306..a60fba9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@uzufly/cesium-ifc-showcase", - "version": "0.2.4", + "version": "0.2.5", "description": "Showcase of the import and viewing of an IFC BIM model within a Cesium 3D photorealistic environment – with a photomesh of ‹Caserne des Vernets› construction site in Geneva, Switzerland.", "source": "src/index.html", "author": "Uzufly sàrl (https://github.com/uzufly)",