-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 969 Bytes
/
push-branch.yml
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
name: push branch
run-name: ${{ github.actor }} is pushing the branch in repository
on: [push]
jobs:
init:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Starting Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install modules
run: npm install
- name: clean build directory
run: rm -rf dist
- name: build project
env:
DB_API_KEY: ${{ secrets.DB_API_KEY }}
DB_APP_ID: ${{ secrets.DB_APP_ID }}
DB_AUTH_DOMAIN: ${{ secrets.DB_AUTH_DOMAIN }}
DB_MESSAGING_SENDER_ID: ${{ secrets.DB_MESSAGING_SENDER_ID }}
DB_PROJECT_ID: ${{ secrets.DB_PROJECT_ID }}
DB_STORAGE_BUCKET: ${{ secrets.DB_STORAGE_BUCKET }}
run: npm run build
- name: lint code
run: npm run lint