Skip to content

Commit 519cd61

Browse files
author
underpostnet
committed
ci(package-pwa-microservices-template-ghpkg): ⚙️ Update github repo package
1 parent 6b4ad98 commit 519cd61

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/ghpkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
npm install -g underpost
4545
underpost config set GITHUB_TOKEN ${{ secrets.GIT_AUTH_TOKEN }}
46-
underpost install
46+
npm install
4747
node ./bin/deploy rename-package @underpostnet/underpost
4848
node ./bin/deploy set-repo underpostnet/pwa-microservices-template-ghpkg
4949

.github/workflows/npmpkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
npm install -g underpost
3030
underpost config set GITHUB_TOKEN ${{ secrets.GIT_AUTH_TOKEN }}
31-
underpost install
31+
npm install
3232
3333
- name: Set git credentials
3434
run: |

.github/workflows/pwa-microservices-template.page.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Build the site
4444
run: |
4545
npm install -g underpost
46-
underpost install
46+
npm install
4747
node bin/deploy update-default-conf ghpkg
4848
env-cmd -f .env.production node bin/deploy build-full-client github-pages underpostnet.github.io /pwa-microservices-template-ghpkg
4949
# git lfs install

src/server/client-formatted.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import fs from 'fs-extra';
44
import vm from 'node:vm';
5+
import Underpost from '../index.js';
56

67
const srcFormatted = (src) =>
78
src
@@ -49,7 +50,7 @@ const viewFormatted = (src, dists, proxyPath, baseHost = '') => {
4950
};
5051

5152
const ssrFactory = async (componentPath = `./src/client/ssr/Render.js`) => {
52-
const context = { SrrComponent: () => {}, npm_package_version: process.env.npm_package_version };
53+
const context = { SrrComponent: () => {}, npm_package_version: Underpost.version };
5354
vm.createContext(context);
5455
vm.runInContext(await srcFormatted(fs.readFileSync(componentPath, 'utf8')), context);
5556
return context.SrrComponent;

0 commit comments

Comments
 (0)