Skip to content

Commit

Permalink
Update github repo package
Browse files Browse the repository at this point in the history
  • Loading branch information
underpostnet committed Oct 28, 2024
1 parent cd2313a commit 582d86a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 25 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/core/Docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Docs = {
icon: html`<i class="fa-brands fa-osi"></i>`,
text: 'Source Docs',
url: function () {
return `${getProxyPath()}docs/engine/2.7.81`;
return `${getProxyPath()}docs/engine/2.7.82`;
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/client/ssr/components/body/CacheControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ SrrComponent = ({ ttiLoadTimeLimit }) => {
const CacheControl = ${CacheControl};
CacheControl({ ttiLoadTimeLimit: ${ttiLoadTimeLimit ? ttiLoadTimeLimit : 1000 * 70 * 1} });
</script>
<div class="clean-cache-container">v2.7.81</div>
<div class="clean-cache-container">v2.7.82</div>
`;
};

0 comments on commit 582d86a

Please sign in to comment.