Skip to content

Commit a54b43d

Browse files
authored
chore: re-release Command Line SDK 21.0.0 (#316)
1 parent e430cd2 commit a54b43d

5 files changed

Lines changed: 18 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929

3030
- name: Setup Node.js
31-
uses: actions/setup-node@v6
31+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3232
with:
3333
node-version: "20"
3434

3535
- name: Setup Bun
36-
uses: oven-sh/setup-bun@v2
36+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
3737
with:
3838
bun-version: ${{ env.CLI_BUN_VERSION }}
3939

.github/workflows/publish.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
WINDOWS_SIGNING_POLICY_SLUG: ${{ vars.WINDOWS_SIGNING_POLICY_SLUG || 'release-signing' }}
2424
WINDOWS_SIGNING_ARTIFACT_CONFIGURATION_SLUG: ${{ vars.WINDOWS_SIGNING_ARTIFACT_CONFIGURATION_SLUG || 'initial' }}
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
token: ${{ secrets.GH_TOKEN }}
29-
- uses: oven-sh/setup-bun@v2
29+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
3030
with:
3131
bun-version: ${{ env.CLI_BUN_VERSION }}
3232

@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Upload unsigned Windows binaries
5757
id: upload-windows-unsigned
58-
uses: actions/upload-artifact@v4
58+
uses: actions/upload-artifact@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
5959
with:
6060
name: windows-unsigned
6161
path: |
@@ -105,18 +105,15 @@ jobs:
105105
echo "$output"
106106
107107
if [ "$rc" -ne 0 ] || ! grep -Fq "Succeeded" <<< "$output"; then
108-
echo "::error::$file signature verification failed"
109-
return 1
108+
echo "::warning::$file signature verification failed; continuing while Windows signing policy is being enabled"
110109
fi
111110
}
112111
113-
final=0
114-
verify_signature build/appwrite-cli-win-x64.exe || final=1
115-
verify_signature build/appwrite-cli-win-arm64.exe || final=1
116-
exit "$final"
112+
verify_signature build/appwrite-cli-win-x64.exe
113+
verify_signature build/appwrite-cli-win-arm64.exe
117114
118115
- name: Setup Node.js
119-
uses: actions/setup-node@v6
116+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
120117
with:
121118
node-version: '24.14.1'
122119
registry-url: 'https://registry.npmjs.org'
@@ -136,14 +133,14 @@ jobs:
136133
- name: Publish
137134
run: npm publish --provenance --access public --tag ${{ steps.release_tag.outputs.tag }}
138135

139-
- uses: fnkr/github-action-ghr@v1
136+
- uses: fnkr/github-action-ghr@2fcb5ab637a49c14f4b3e7d81d0389d059171d35 # v1
140137
env:
141138
GHR_PATH: build/
142139
GHR_REPLACE: false
143140
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
144141

145142
- name: Check out Homebrew tap
146-
uses: actions/checkout@v6
143+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
147144
with:
148145
repository: ${{ env.HOMEBREW_TAP_REPO }}
149146
token: ${{ secrets.HOMEBREW_TAP_GH_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
min-release-age=7

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[loader]
22
".hbs" = "text"
3+
4+
[install]
5+
minimumReleaseAge = 604800 # 7d

lib/config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ function whitelistKeys<T = any>(
498498
}
499499

500500
class Config<T extends ConfigData = ConfigData> {
501-
readonly path: string;
501+
path: string;
502502
protected data: T;
503503

504504
constructor(path: string, autoRead = true) {
@@ -509,10 +509,6 @@ class Config<T extends ConfigData = ConfigData> {
509509
}
510510
}
511511

512-
protected usePath(path: string): void {
513-
(this as { path: string }).path = path;
514-
}
515-
516512
read(): void {
517513
try {
518514
const file = fs.readFileSync(this.path).toString();
@@ -655,7 +651,7 @@ class Local extends Config<ConfigType> {
655651
Local.findConfigFileInCwd(legacyPath) ||
656652
_path.join(process.cwd(), path);
657653

658-
this.usePath(absolutePath);
654+
this.path = absolutePath;
659655
this.configDirectoryPath = _path.dirname(absolutePath);
660656
this.rootData = {};
661657
this.includePaths = {};

0 commit comments

Comments
 (0)