-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.33 KB
/
Copy pathpublish-develop.yml
File metadata and controls
46 lines (43 loc) · 1.33 KB
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
name: "publish-development"
on:
push:
branches:
- development
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Setup checkout
uses: actions/checkout@v2
with:
ref: development
- name: Setup npmrc
run: |
echo -e "@fullexpression:registry=https://npm.pkg.github.com/fullexpression\n//npm.pkg.github.com/:_authToken=${{secrets.NPM_AUTH_TOKEN}}\nregistry=https://registry.npmjs.org" > .npmrc
git config --global core.excludesfile .npmrc
- name: Install packages
run: npm install
- name: Setting git author
run: |
git config --global user.email "ricardo1992rocha@gmail.com"
git config --global user.name "Ricardo Rocha"
- name: Increase patch version
working-directory: ./
run: npm version patch --force
- name: Build
run: npm run build
- name: Commit new version
working-directory: ./
run: git push
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}