Skip to content

Commit

Permalink
Merge pull request #431 from skalenetwork/remove-deprecated-actions-c…
Browse files Browse the repository at this point in the history
…ache-version

Update GitHub Actions workflows
  • Loading branch information
DimaStebaev authored Dec 19, 2024
2 parents 89aff4a + 03943e9 commit 3cbd57d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,14 @@ jobs:
build:
runs-on: ubuntu-latest
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@v2
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/checkout@v4

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Install project
run: yarn
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,19 @@ jobs:
runs-on: ubuntu-latest

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@v2
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/checkout@v4

- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'yarn'

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip'

- name: Install project
run: yarn
Expand Down

0 comments on commit 3cbd57d

Please sign in to comment.