Deploy to by @iuricmp #3
Workflow file for this run
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: Build | |
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
# paths: | |
# - "js/**" | |
# - "config/**" | |
# - ".github/workflows/js.yml" | |
pull_request: | |
# paths: | |
# - "js/**" | |
# - "config/**" | |
# - ".github/workflows/js.yml" | |
jobs: | |
build-and-lint: | |
runs-on: ubuntu-latest | |
name: Build, lint and test JS | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup asdf | |
uses: asdf-vm/actions/setup@v1 | |
- name: Setup node | |
run: | | |
asdf plugin add nodejs | |
asdf install nodejs | |
echo "node_version=$(asdf current nodejs | xargs | cut -d ' ' -f 2)" >> $GITHUB_ENV | |
- name: Setup yarn | |
run: | | |
asdf plugin add yarn | |
asdf install yarn | |
- name: Cache node modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-node-${{ env.node_version }}-${{ hashFiles('yarn.lock') }} | |
restore-keys: ${{ runner.OS }}-node-${{ env.node_version }}- | |
- name: Fetch common node modules | |
run: make node_modules | |
# - name: Lint | |
# run: make lint | |
- name: Build IOS | |
run: make build.ios | |