Skip to content

Commit 264b6c5

Browse files
committed
Tweak build
1 parent a83d586 commit 264b6c5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,29 @@ on:
66
- main
77

88
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+
919
deploy:
20+
needs: build
1021
runs-on: ubuntu-latest
11-
name: Deploy
1222
steps:
1323
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 18
27+
registry-url: https://registry.npmjs.org/
1428
- name: Publish
1529
uses: cloudflare/wrangler-action@2.0.0
1630
with:
1731
apiToken: ${{ secrets.CF_API_DEPLOY_TOKEN }}
1832
accountId: ${{ secrets.CF_ACCOUNT_ID }}
33+
preCommands: npm install
34+
command: publish

0 commit comments

Comments
 (0)