[Fix] CI/CD

This commit is contained in:
Patryk Rzucidlo (PTKDev)
2023-02-11 02:06:49 +01:00
parent ef329158d1
commit 483d9d0ba6
6 changed files with 7 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version --cmd beta - run: npm run github-workflow-next-version -- --cmd beta
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit
- id: pkgjson - id: pkgjson
@@ -28,7 +28,7 @@ jobs:
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git fetch --all && git checkout nightly - run: git fetch --all && git checkout nightly
- run: npm run github-workflow-next-version --cmd nightly-next - run: npm run github-workflow-next-version -- --cmd nightly-next
- run: npm run pre-commit - run: npm run pre-commit
- id: nextnightly - id: nextnightly
run: chmod +x ./scripts/version.sh && ./scripts/version.sh run: chmod +x ./scripts/version.sh && ./scripts/version.sh

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version --cmd main - run: npm run github-workflow-next-version -- --cmd main
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit
- id: pkgjson - id: pkgjson

View File

@@ -18,7 +18,7 @@ jobs:
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)' - run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
- run: git config --global user.email 'support@ptkdev.io' - run: git config --global user.email 'support@ptkdev.io'
- run: npm ci - run: npm ci
- run: npm run github-workflow-next-version --cmd nightly - run: npm run github-workflow-next-version -- --cmd nightly
- run: npm run pkg-upgrade - run: npm run pkg-upgrade
- run: npm run release - run: npm run release
- run: npm run pre-commit - run: npm run pre-commit

View File

@@ -4,7 +4,7 @@
<!-- all-shields/header-badges:START --> <!-- all-shields/header-badges:START -->
[![v0.0.0](https://img.shields.io/badge/version-v0.0.0-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io) [![v0.2.1](https://img.shields.io/badge/version-v0.2.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/sveltekit-electron-adapter?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/sveltekit-electron-adapter) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/sveltekit-electron-adapter/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)
<!-- all-shields/header-badges:END --> <!-- all-shields/header-badges:END -->

View File

@@ -2,7 +2,7 @@
"name": "@ptkdev/sveltekit-electron-adapter", "name": "@ptkdev/sveltekit-electron-adapter",
"displayName": "SvelteKit Adapter for Desktop Apps with Electron", "displayName": "SvelteKit Adapter for Desktop Apps with Electron",
"description": "Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron", "description": "Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron",
"version": "0.0.0", "version": "0.2.1",
"main": "./index.js", "main": "./index.js",
"type": "module", "type": "module",
"exports": { "exports": {

View File

@@ -19,6 +19,7 @@ const version = pkg.version.split(".");
let next_version, patch; let next_version, patch;
const argv: any = yargs(process.argv.slice(2)).argv; const argv: any = yargs(process.argv.slice(2)).argv;
console.log(argv.cmd);
switch (argv.cmd) { switch (argv.cmd) {
case "nightly": case "nightly":