fix: getMyArticles #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy to dev | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
name: 'deploy' | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: set frontend env | |
run: mkdir -p src/environments && echo "${{ secrets.ENV_DEV }}" >> src/environments/environment.ts | |
- name: update node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: install dependencies | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: build | |
run: npm run build | |
- name: install dependencies in functions | |
run: cd functions && npm ci | |
- name: lint | |
run: npm run lint | |
# TODO: テストが整ったら入れる | |
# - name: test | |
# run: npm run test | |
- name: deploy to firebase | |
uses: w9jds/[email protected] | |
with: | |
args: deploy | |
env: | |
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_DEV }} | |
PROJECT_ID: dev |