Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
flakey5 committed Sep 1, 2023
1 parent 5864b2e commit d8640df
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Prettier

on:
push:
pull_request:

jobs:
format-ts:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npm run check-format
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"deploy": "wrangler deploy",
"start": "wrangler dev",
"format": "prettier -u --write \"**/*.{ts,json}\""
"format": "prettier -u --write \"**/*.{ts,js,json}\"",
"check-format": "prettier -u --check \"**/*.{ts,js,json}\""
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230419.0",
Expand Down
6 changes: 4 additions & 2 deletions scripts/rotate-api-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

const { randomUUID } = require('crypto');

console.log(`New api key: ${randomUUID()}`)
console.log('Now, run `wrangler secrets put PURGE_API_KEY` and enter it in the prompt.')
console.log(`New api key: ${randomUUID()}`);
console.log(
'Now, run `wrangler secrets put PURGE_API_KEY` and enter it in the prompt.'
);

0 comments on commit d8640df

Please sign in to comment.