Skip to content

Commit baeee44

Browse files
committed
feat: add release workflow
1 parent fc3c5ab commit baeee44

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release Extension
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 22
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
working-directory: functions
23+
24+
- name: Check formatting
25+
run: npm run format:check
26+
working-directory: functions
27+
28+
- name: Build functions
29+
run: npm run build
30+
working-directory: functions
31+
32+
- name: Run tests
33+
run: npx vitest run
34+
working-directory: functions
35+
36+
- name: Install Firebase CLI
37+
run: npm install -g firebase-tools
38+
39+
- name: Authenticate to Firebase
40+
run: firebase login:ci --token "${{ secrets.FIREBASE_TOKEN }}"
41+
42+
- name: Publish extension to Firebase Extensions Hub
43+
run: firebase ext:dev:publish firestore-web-scraper
44+
env:
45+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 commit comments

Comments
 (0)