diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d94a3a9..558814a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,25 +34,24 @@ jobs: name: Publish to npm run: npm publish --provenance --access public - - name: Clone github package repository - run: | - git clone https://github.com/underpostnet/pwa-microservices-template-ghpkg.git - rm -rf ./.git - cp -a ./pwa-microservices-template-ghpkg/.git ./.git - rm -rf ./pwa-microservices-template-ghpkg - node ./bin/deploy rename-package @underpostnet/underpost - node ./bin/deploy set-repo underpostnet/pwa-microservices-template-ghpkg + build-and-publish-ghpkg: + # prevents this action from running on forks + if: github.repository == 'underpostnet/pwa-microservices-template-ghpkg' + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' - - name: Set git credentials - run: | - git config --global credential.helper "" - git config credential.helper "" - git config --global user.name 'underpostnet' - git config --global user.email 'fcoverdugoa@underpost.net' - git config --global credential.interactive always - git config user.name 'underpostnet' - git config user.email 'fcoverdugoa@underpost.net' - git config credential.interactive always + - name: Install Dependencies + run: npm install + + - run: npm ci # Publish to npm git hub package - uses: actions/setup-node@v4 diff --git a/bin/index.js b/bin/index.js index ad430ad..ce133f8 100644 --- a/bin/index.js +++ b/bin/index.js @@ -19,7 +19,7 @@ const globalBinFolder = `${shellExec(`npm root -g`, { const program = new Command(); -const version = '2.7.81'; +const version = '2.7.82'; program.name('underpost').description(`underpost.net ci/cd cli ${version}`).version(version); diff --git a/docker-compose.yml b/docker-compose.yml index 6b67076..196549d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,7 +58,7 @@ services: cpus: '0.25' memory: 20M labels: # labels in Compose file instead of Dockerfile - engine.version: '2.7.81' + engine.version: '2.7.82' networks: - load-balancer diff --git a/package-lock.json b/package-lock.json index 19c88bf..e88efd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@underpostnet/underpost", - "version": "2.7.81", + "version": "2.7.82", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@underpostnet/underpost", - "version": "2.7.81", + "version": "2.7.82", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 81041f6..257d408 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "type": "module", "main": "src/index.js", "name": "@underpostnet/underpost", - "version": "2.7.81", + "version": "2.7.82", "description": "pwa api rest template", "scripts": { "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server", diff --git a/src/client/components/core/Docs.js b/src/client/components/core/Docs.js index 2b044f8..c6dc596 100644 --- a/src/client/components/core/Docs.js +++ b/src/client/components/core/Docs.js @@ -63,7 +63,7 @@ const Docs = { icon: html``, text: 'Source Docs', url: function () { - return `${getProxyPath()}docs/engine/2.7.81`; + return `${getProxyPath()}docs/engine/2.7.82`; }, }, { diff --git a/src/client/ssr/components/body/CacheControl.js b/src/client/ssr/components/body/CacheControl.js index b742668..d8d81f7 100644 --- a/src/client/ssr/components/body/CacheControl.js +++ b/src/client/ssr/components/body/CacheControl.js @@ -109,6 +109,6 @@ SrrComponent = ({ ttiLoadTimeLimit }) => { const CacheControl = ${CacheControl}; CacheControl({ ttiLoadTimeLimit: ${ttiLoadTimeLimit ? ttiLoadTimeLimit : 1000 * 70 * 1} }); -