restore legacy logic #6
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: Example - Basic React | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./examples/basic-react | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Build core | |
working-directory: ./ | |
run: | | |
npm ci | |
npm run build | |
- name: Install dependencies | |
run: npm ci | |
- name: Typecheck | |
run: npm run typecheck | |
- name: ESLint | |
run: npm run eslint | |
- name: Prettier | |
run: npm run prettier | |
- name: depcheck | |
run: npm run depcheck | |
# - name: Test | |
# run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Sync OptimizelyAsCode | |
# if: github.event_name == 'workflow_dispatch' | |
env: | |
OPTIMIZELY_ACCESS_TOKEN: my-optimizely-access-token | |
OPTIMIZELY_PROJECT_ID: my-optimizely-project-id | |
run: npm run optimizely-as-code |