Skip to content

Commit

Permalink
fix: auto release on action (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Dec 17, 2022
1 parent b058a5e commit e5bfe04
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
# 合并后自动发布
push:
branches: [ master ]

# 手动发布
workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
6 changes: 6 additions & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Writable, Readable } from 'stream';
import {
GetObjectOptions,
IObjectSimple,
SignatureUrlOptions,
ListObjectsQuery,
RequestOptions,
ListObjectResult,
Expand Down Expand Up @@ -59,6 +60,11 @@ class SimpleClient implements IObjectSimple {
console.log(name, sourceName, sourceBucket, options);
return {} as any;
}

async asyncSignatureUrl(name: string, options?: SignatureUrlOptions) {
console.log(name, options);
return '';
}
}

const simpleClient = new SimpleClient();
Expand Down

0 comments on commit e5bfe04

Please sign in to comment.