Skip to content

Use AppBuilders Version in key for project_data cache #2

Use AppBuilders Version in key for project_data cache

Use AppBuilders Version in key for project_data cache #2

Workflow file for this run

name: WIP
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- name: Get environment info
run: |
node --version
npm --version
- name: Restore node_modules cache
id: restore-node-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.restore-node-cache.outputs.cache-hit != 'true'
run: |
echo "Installing dependencies..."
npm ci
- name: Cache node_modules
if: steps.restore-node-cache.outputs.cache-hit != 'true'
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
- name: Get AppBuilder Version
run: |
TOKEN_JSON=$(curl https://ghcr.io/token\?scope\="repository:sillsdev/app-builders:pull")
TOKEN=$(echo $TOKEN_JSON | jq ".token")
curl -H "Authorization: Bearer $TOKEN" https://ghcr.io/v2/sillsdev/app-builders/tags/list