We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83d586 commit 264b6c5Copy full SHA for 264b6c5
.github/workflows/main.yml
@@ -6,13 +6,29 @@ on:
6
- main
7
8
jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - uses: actions/setup-node@v3
14
+ with:
15
+ node-version: 18
16
+ - run: npm ci
17
+ - run: npm run lint
18
+
19
deploy:
20
+ needs: build
21
runs-on: ubuntu-latest
- name: Deploy
22
steps:
23
- uses: actions/checkout@v3
24
25
26
27
+ registry-url: https://registry.npmjs.org/
28
- name: Publish
29
uses: cloudflare/wrangler-action@2.0.0
30
with:
31
apiToken: ${{ secrets.CF_API_DEPLOY_TOKEN }}
32
accountId: ${{ secrets.CF_ACCOUNT_ID }}
33
+ preCommands: npm install
34
+ command: publish
0 commit comments