Skip to content

Commit

Permalink
Update GitHub Actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jyap808 committed Dec 17, 2024
1 parent f384f5d commit 5cd3edb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Retrieve node version from .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

Expand All @@ -37,7 +37,7 @@ jobs:
run: zip -r dist/web/standalone_pyrus.zip dist/web/

- name: 'Save standalone_pyrus.zip to artifacts'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: 'standalone_pyrus'
path: 'dist/web/standalone_pyrus.zip'
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ jobs:
ELECTRON_BUILDER_CACHE: $HOME/.cache/electron-builder
steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- run: node --version; npm --version; yarn --version

- name: Cache node modules
id: cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
## Check cache based on yarn.lock hashfile
Expand All @@ -54,22 +54,22 @@ jobs:
run: yarn test:coverage --maxWorkers=2

- name: CodeCov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5

standalone-build:
name: Standalone Build
runs-on: ubuntu-latest

steps:
- name: Retrieves project from the git branch
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Retrieve node version from .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat package.json | grep '\"node\":' | sed 's/^ *//;s/ *$//;s/\"node\":\ \"//;s/\",//')"
id: nvm

- name: Setup node ${{ steps.nvm.outputs.NVMRC }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

Expand All @@ -83,7 +83,7 @@ jobs:
run: zip -r dist/web/standalone_pyrus.zip dist/web/

- name: 'Save standalone_pyrus.zip to artifacts'
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: 'standalone_pyrus'
path: 'dist/web/standalone_pyrus.zip'

0 comments on commit 5cd3edb

Please sign in to comment.