Skip to content

👷 Add artifact builds to CI #9

👷 Add artifact builds to CI

👷 Add artifact builds to CI #9

Workflow file for this run

name: CI
on:
push:
jobs:
license_check:
name: License Check
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Check licenses
run: pnpm script:license-check
build:
name: Build
depends-on: license_check

Check failure on line 40 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 40, Col: 5): Unexpected value 'depends-on'
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Build
run: pnpm build
- name: De-symlink
run: rsync .store/rt/ rt_dist/ -a --copy-links
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: testing_browser
path: rt_dist/