diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1510f12..fac1c37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,37 +18,20 @@ jobs: if: github.event.pull_request.merged steps: - - uses: actions/checkout@v2 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v4.2.0 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - uses: actions/cache@v4.2.0 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - uses: actions/checkout@v4 - name: Install NODE JS uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' + cache: 'yarn' - name: Set up Python 3.9 uses: actions/setup-python@v2 with: python-version: ${{ env.PYTHON_VERSION }} + cache: 'pip' - name: Install building tools run: pip3 install -r ./predeployed/scripts/requirements.txt