-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alan Shaw
committed
May 17, 2024
1 parent
f317cb8
commit a43103a
Showing
4 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,13 +57,18 @@ jobs: | |
registry-url: https://registry.npmjs.org/ | ||
cache: 'pnpm' | ||
if: ${{ steps.release.outputs.release_created }} | ||
- name: Install | ||
- name: Install Dependencies | ||
run: pnpm install | ||
if: ${{ steps.release.outputs.release_created }} | ||
- name: Build | ||
run: pnpm build | ||
if: ${{ steps.release.outputs.release_created }} | ||
- name: Deploy to Production | ||
- name: Publish to npm | ||
run: npm publish --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: ${{ steps.release.outputs.release_created }} | ||
- name: Deploy to Cloudflare | ||
uses: cloudflare/[email protected] | ||
with: | ||
apiToken: ${{ secrets.CF_TOKEN }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { R2Bucket } from '@cloudflare/workers-types' | ||
|
||
export { R2Bucket } | ||
|
||
export interface Environment { | ||
BUCKET: R2Bucket | ||
} | ||
|
||
export declare function handler (request: Request, env: Environment): Promise<Response> |
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