Skip to content

feat(cdk): add caching utilities in /fetch-cache #251

feat(cdk): add caching utilities in /fetch-cache

feat(cdk): add caching utilities in /fetch-cache #251

Workflow file for this run

name: release
on:
push:
branches: [main, beta, 3.x]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Git set user
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
# Dependencies
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
./node_modules
./libs/cli/node_modules
key: ${{ runner.os }}-cache-${{ hashFiles('./package-lock.json') }}-${{ hashFiles('./libs/cli/package-lock.json') }}
- name: Check npm version
run: npm -v
- name: Install root dependencies
run: npm i
- name: Install cli dependencies
run: npm i
working-directory: ./libs/cli
- name: Build tooling scripts
run: npm run build-tools
# Build and release
- name: Building
# TODO enable elastic-explorer-chrome-extension again
run: npm run nx -- run-many --target=build --configuration=production --exclude=docs,docs-app,elastic-explorer-chrome-extension
- name: Testing
run: npm run nx -- run-many --target=test --exclude=docs,docs-app,elastic-explorer-chrome-extension
- name: Syncing package.json files metadata
run: node ./tools/sync-package-metadata.js
- name: Releasing
run: npx semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}