Skip to content

Commit

Permalink
feat: fuck github action
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Nov 25, 2023
1 parent 6cd51cf commit 3614d77
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 10 deletions.
12 changes: 12 additions & 0 deletions .changeset/rude-zoos-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"yakite": patch
"krohnkite-core": patch
"yakite-bridge": patch
"yakite-config": patch
"yakite-daemon": patch
"yakite-message": patch
"yakite-toast": patch
"yakite-yabai": patch
---

feat: fuck github action
6 changes: 2 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
{
"type": "node",
"request": "launch",
"name": "启动程序",
"skipFiles": [
"<node_internals>/**"
],
"name": "start",
"skipFiles": ["<node_internals>/**"],
"preLaunchTask": "build",
"program": "${workspaceFolder}/apps/yakite-daemon/dist/bin/yakite-daemon.js",
"outFiles": [
Expand Down
15 changes: 11 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@
"eslint.options": {
// "overrideConfigFile": "eslint.config.js"
},
"rust-analyzer.linkedProjects": ["apps/yakite/Cargo.toml"],
"rust-analyzer.linkedProjects": [
"apps/yakite/Cargo.toml"
],
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.tabSize": 2
},
"rust-analyzer.rustfmt.extraArgs": ["--config", "tab_spaces=2"],
"rust-analyzer.rustfmt.extraArgs": [
"--config",
"tab_spaces=2"
],
"typescript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifier": "non-relative",
"[objective-c]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"[typescript]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode"
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": false
},
"[javascript]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode"
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": false
},
"[jsonc]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode",
Expand Down
1 change: 1 addition & 0 deletions apps/yakite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "yakite"
version = "0.1.6"
edition = "2021"
description = "A dynamic tiled window management that bridges the gap between yabai and krohnkite"
license = "MIT"

[dependencies]
zmq = "0.10.0"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yakite",
"version": "0.1.0",
"name": "root",
"version": "0.0.0",
"private": "true",
"type": "module",
"description": "A dynamic tiled window management that bridges the gap between yabai and krohnkite",
Expand Down
35 changes: 35 additions & 0 deletions scripts/fuck-github-action.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { getPackages } from '@manypkg/get-packages'
import { $ } from 'execa'

export type ILanguage = 'objective-c' | 'rust'
export interface IPackageJson {
changesetsExtra: {
language: ILanguage
sources: string[]
versionUpdatePolicy: 'source-code-replacement' | 'auto'
prevVersion?: string
}
}

const { packages } = await getPackages(process.cwd())

packages
.filter(it =>
['yakite', 'yakite-toast'].includes(
(
it.packageJson as typeof it.packageJson &
IPackageJson
).name
)
)
.forEach(it => {
const { version, name } =
it.packageJson as typeof it.packageJson & IPackageJson

;(async () => {
await $`git push origin --delete ${name}@${version}`
await $`git push origin ${name}@${version}`
})().catch(e => {
console.error(e)
})
})

0 comments on commit 3614d77

Please sign in to comment.