Skip to content

build(deps): update yarn to 4.2.2 (#53) #54

build(deps): update yarn to 4.2.2 (#53)

build(deps): update yarn to 4.2.2 (#53) #54

Workflow file for this run

name: CD
on:
push:
branches: [develop]
workflow_dispatch:
env:
FORCE_COLOR: true
NODE_VERSION: 18
jobs:
deploy:
name: Deploy Data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install --immutable
- name: Build Data
run: yarn super-league -i data -o output
- name: Deploy Data
uses: wopian/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: data
FOLDER: output
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_EMPTY_COMMITS: true
MESSAGE: "{sha}"