Skip to content

Commit d6a9629

Browse files
authored
Merge pull request #102 from codediodeio/ci
Documentation & CI
2 parents bcb4127 + 7ee78a2 commit d6a9629

28 files changed

+8695
-494
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to Firebase Hosting
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
defaults:
9+
run:
10+
working-directory: ./docs
11+
12+
env:
13+
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}}
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v2
21+
with:
22+
node-version: "18.x"
23+
- run: npm ci
24+
- run: npm run build
25+
- run: npm run deploy

.github/workflows/npm-publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: "18.x"
15+
registry-url: "https://registry.npmjs.org"
16+
- run: npm ci
17+
- run: npm run build
18+
- name: Publish package to NPM
19+
run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/run-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Playwright Tests
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
branches: [master, main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 18
18+
- run: npm ci
19+
- run: npx playwright install --with-deps
20+
- run: npx playwright test
21+
- uses: actions/upload-artifact@v3
22+
if: always()
23+
with:
24+
name: playwright-report
25+
path: playwright-report/
26+
retention-days: 30

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ package
1212
/test-results
1313
*-debug.log
1414
/dist
15+
/.firebase

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A minimal, yet powerful library that puts realtime Firebase data into Svelte stores.
44

5-
Experimental! Do not use in production.
5+
[Documentation](https://sveltefire.fireship.io)
66

77
```svelte
88
<!-- 1. 🔥 Firebase App -->

0 commit comments

Comments
 (0)