fix: not working for aws #59
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: JavaScript | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: JS / Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
cache-dependency-path: ./js/package-lock.json | |
- name: Install dependencies | |
working-directory: ./js | |
run: | | |
npm ci | |
- name: Check formatting | |
working-directory: ./js | |
run: | | |
npm run format-check | |
- name: Build production JS | |
uses: flarum/action-build@2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
build_script: build | |
package_manager: npm | |
do_not_commit: ${{ github.ref != 'refs/heads/master' || github.event_name != 'push' }} |