This is a list of tools to automate GitHub releases including the generation of changelogs, version bumps and publishing of releases or packages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'node:fs/promises'; | |
import path from 'node:path'; | |
async function* readAllFiles(dir: string): AsyncGenerator<string> { | |
// use fs.readdirSync() to avoid async | |
const files = await fs.readdir(dir, { withFileTypes: true }); | |
for (const file of files) { | |
if (file.isDirectory()) { | |
yield* readAllFiles(path.join(dir, file.name)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* There are multiple options to affect the user language on Chrome. | |
*/ | |
const LANG = 'de'; | |
/* | |
* Set `--lang=de'` when starting Chrome | |
* https://peter.sh/experiments/chromium-command-line-switches/#lang) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title S3 Download | |
# @raycast.mode fullOutput | |
# Optional parameters: | |
# @raycast.icon 🤖 | |
# @raycast.packageName AWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* object types */ | |
// generic parameters T1, T2, T3 are not used in the actual type definition | |
type GenericObject<T1 extends any, T2 extends any, T3 extends any> = {}; | |
const obj: GenericObject<{ a: string }, number[], boolean> = {}; | |
type InferT1FromGenricObject<TObj> = TObj extends GenericObject<infer T1, any, any> ? T1 : never; | |
type InferT2FromGenricObject<TObj> = TObj extends GenericObject<any, infer T2, any> ? T2 : never; | |
type InferT3FromGenricObject<TObj> = TObj extends GenericObject<any, any, infer T3> ? T3 : never; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'cross-fetch'; | |
type Todo = { | |
id: number; | |
userId: number; | |
title: string; | |
completed: boolean; | |
}; | |
interface CustomMatchers<R = unknown> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { AWS } from '@serverless/typescript'; | |
export interface CustomServerless extends AWS { | |
stepFunctions: { | |
stateMachines: StateMachines; | |
validate?: boolean; | |
}; | |
} | |
type StateMachines = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
. "$(dirname "$0")/_/husky.sh" | |
IFS=$'\n' | |
# regex supports mono-repos with a package.json at root-level and at package-level | |
PACKAGE_LOCK_REGEX="(^packages\/.*\/package-lock\.json)|(^package-lock\.json)" | |
# extract all paths to package-lock.json files | |
PACKAGES=("$(git diff --name-only HEAD@{1} HEAD | grep -E "$PACKAGE_LOCK_REGEX")") | |
if [[ ${PACKAGES[@]} ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright © 2019 Andrés Zorro | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
NewerOlder