-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.52 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "🚀 Deploy New Version"
on:
workflow_dispatch:
release:
types: [created]
jobs:
install:
name: install
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: install dependencies
run: npm install
working-directory: app
- name: Upload files
uses: actions/upload-artifact@v4
with:
name: easy-auth
path: .
deploy_to_firebase:
needs: install
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_EASY_AUTH_EXWEIV_APPS }}"
projectId: easy-auth-exweiv-apps
channelId: live
publish_to_npm:
needs: deploy_to_firebase
runs-on: ubuntu-latest
steps:
- name: node
uses: actions/setup-node@v4
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Download files
uses: actions/download-artifact@v4
with:
name: easy-auth
path: .
- name: publish
run: npm publish --access public
working-directory: app
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}