Skip to content

Commit

Permalink
Update GitHub Actions workflow to use checkout@v4 and enable caching …
Browse files Browse the repository at this point in the history
…for yarn and pip
  • Loading branch information
yavrsky committed Dec 18, 2024
1 parent 6ed5185 commit 2f9ec9f
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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
Expand Down

0 comments on commit 2f9ec9f

Please sign in to comment.