Skip to content

Commit 483d9d0

Browse files
committed
[Fix] CI/CD
1 parent ef32915 commit 483d9d0

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.github/workflows/beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
1919
- run: git config --global user.email '[email protected]'
2020
- run: npm ci
21-
- run: npm run github-workflow-next-version --cmd beta
21+
- run: npm run github-workflow-next-version -- --cmd beta
2222
- run: npm run release
2323
- run: npm run pre-commit
2424
- id: pkgjson
@@ -28,7 +28,7 @@ jobs:
2828
env:
2929
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3030
- run: git fetch --all && git checkout nightly
31-
- run: npm run github-workflow-next-version --cmd nightly-next
31+
- run: npm run github-workflow-next-version -- --cmd nightly-next
3232
- run: npm run pre-commit
3333
- id: nextnightly
3434
run: chmod +x ./scripts/version.sh && ./scripts/version.sh

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
1919
- run: git config --global user.email '[email protected]'
2020
- run: npm ci
21-
- run: npm run github-workflow-next-version --cmd main
21+
- run: npm run github-workflow-next-version -- --cmd main
2222
- run: npm run release
2323
- run: npm run pre-commit
2424
- id: pkgjson

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: git config --global user.name 'Patryk Rzucidlo (@PTKDev)'
1919
- run: git config --global user.email '[email protected]'
2020
- run: npm ci
21-
- run: npm run github-workflow-next-version --cmd nightly
21+
- run: npm run github-workflow-next-version -- --cmd nightly
2222
- run: npm run pkg-upgrade
2323
- run: npm run release
2424
- run: npm run pre-commit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!-- all-shields/header-badges:START -->
66

7-
[![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)
7+
[![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)
88

99
<!-- all-shields/header-badges:END -->
1010

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ptkdev/sveltekit-electron-adapter",
33
"displayName": "SvelteKit Adapter for Desktop Apps with Electron",
44
"description": "Adapter for SvelteKit apps that prerenders your entire site as a collection of static files for use with Electron",
5-
"version": "0.0.0",
5+
"version": "0.2.1",
66
"main": "./index.js",
77
"type": "module",
88
"exports": {

scripts/version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const version = pkg.version.split(".");
1919
let next_version, patch;
2020

2121
const argv: any = yargs(process.argv.slice(2)).argv;
22+
console.log(argv.cmd);
2223

2324
switch (argv.cmd) {
2425
case "nightly":

0 commit comments

Comments
 (0)