File tree 9 files changed +2587
-21328
lines changed
9 files changed +2587
-21328
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
os : [ubuntu-latest]
15
- node : [12 .x]
15
+ node : [15 .x]
16
16
17
17
steps :
18
18
- name : Checkout 🛎
Original file line number Diff line number Diff line change 15
15
16
16
strategy :
17
17
matrix :
18
- node : [12 .x]
18
+ node : [15 .x]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
24
24
with :
25
25
node-version : ${{ matrix.node }}
26
26
check-latest : true
27
-
27
+
28
28
- name : Create .env file
29
29
run : echo '${{ secrets.ENV_DEV }}' > .env
30
30
55
55
channelId : live
56
56
projectId : lab-assignment-dev
57
57
58
+ deploy_to_functions :
59
+ runs-on : ubuntu-latest
60
+
61
+ strategy :
62
+ matrix :
63
+ node-version : [14.x]
64
+
65
+ steps :
66
+ - uses : actions/checkout@v2
67
+
68
+ - name : Install npm packages
69
+ run : |
70
+ cd functions
71
+ npm install
72
+
73
+ - name : Deploy to Cloud Functions
74
+ uses : w9jds/firebase-action@master
75
+ with :
76
+ args : deploy --only functions
77
+ env :
78
+ FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
79
+ PROJECT_ID : lab-assignment-dev
80
+
58
81
delete_preview_env :
59
82
runs-on : ubuntu-latest
60
83
76
99
77
100
- name : Delete preview
78
101
run : firebase hosting:channel:delete ${{ github.event.number }} --token ${{ secrets.FIREBASE_TOKEN }} -f
79
-
Original file line number Diff line number Diff line change 15
15
strategy :
16
16
matrix :
17
17
os : [ubuntu-latest]
18
- node : [12 .x]
18
+ node : [15 .x]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 15
15
16
16
strategy :
17
17
matrix :
18
- node : [12 .x]
18
+ node : [15 .x]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
55
55
channelId : live
56
56
projectId : lab-assignment-prod
57
57
58
+ deploy_to_functions :
59
+ runs-on : ubuntu-latest
58
60
61
+ strategy :
62
+ matrix :
63
+ node-version : [14.x]
64
+
65
+ steps :
66
+ - uses : actions/checkout@v2
67
+
68
+ - name : Install npm packages
69
+ run : |
70
+ cd functions
71
+ npm install
72
+
73
+ - name : Deploy to Cloud Functions
74
+ uses : w9jds/firebase-action@master
75
+ with :
76
+ args : deploy --only functions
77
+ env :
78
+ FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
79
+ PROJECT_ID : lab-assignment-prod
Original file line number Diff line number Diff line change 32
32
33
33
| パッケージ | バージョン |
34
34
| ---------- | ---------- |
35
- | ` yarn ` | 1.22.10 |
36
- | ` node ` | v12.22.7 |
35
+ | ` yarn ` | 1.22.17 |
36
+ | ` node ` | v15.14.0 |
37
37
| ` firebase ` | 9.6.1 |
38
38
39
39
> ` firebase ` に関しては,8 系と 9 系でコードの書き方が大きく異なるので,注意すること
@@ -108,14 +108,14 @@ nodebrew setup
108
108
nodebrew ls-remote
109
109
110
110
# Nodeのインストール
111
- nodebrew install-binary v12.22.7
112
- nodebrew compile v12.22.7 # M1の場合はこちら
111
+ nodebrew install-binary v15.14.0
112
+ nodebrew compile v15.14.0 # M1の場合はこちら
113
113
114
114
# インストールしたバージョンの確認
115
115
nodebrew ls
116
116
117
117
# 使いたいバージョンを指定
118
- nodebrew use v12.22.7
118
+ nodebrew use v15.14.0
119
119
120
120
# nodeのバージョンを確認
121
121
node -v
@@ -152,7 +152,7 @@ npm install -g firebase-tools
152
152
#### 1. リポジトリのクローン
153
153
154
154
- ` git ` にて,リポジトリのクローンを行う
155
- - GitHubにssh接続ができるように設定しておきましょう
155
+ - GitHub に ssh 接続ができるように設定しておきましょう
156
156
157
157
``` bash
158
158
git clone
[email protected] :Kenny-NISLab/lab-assignment.git
@@ -221,7 +221,7 @@ control + C
221
221
222
222
![ image] ( https://user-images.githubusercontent.com/49640294/150631310-09a23a79-2f52-4403-aa20-65d58efbe601.png )
223
223
224
- #### 4. VSCodeで開発に必要な拡張ツール
224
+ #### 4. VSCode で開発に必要な拡張ツール
225
225
226
226
開発するにあたり,以下の拡張ツールをインストールしておいてください
227
227
@@ -554,11 +554,13 @@ git push origin feature/#(チケット番号)
554
554
555
555
- ファイル名:` deploy_on_dev.yml `
556
556
- 開発環境へデプロイ
557
+ - 開発環境に Cloud Functions をデプロイ
557
558
- プレビュー環境の削除
558
559
559
560
- ` main ` ブランチに投げた PR をクローズした際(マージした際)
560
561
- ファイル名:` deploy_on_prod.yml `
561
562
- 本番環境へデプロイ
563
+ - 本番環境に Cloud Functions をデプロイ
562
564
563
565
---
564
566
Original file line number Diff line number Diff line change 19
19
"indexes" : " firestore.index.json"
20
20
},
21
21
"functions" : {
22
- "predeploy" : [
23
- " npm --prefix \" $RESOURCE_DIR\" run lint"
24
- ],
25
22
"source" : " functions"
26
23
}
27
24
}
You can’t perform that action at this time.
0 commit comments