Skip to content

Commit

Permalink
ci: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDmz committed Dec 5, 2024
1 parent b5bbd3e commit 6cb02ba
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
Expand All @@ -20,7 +20,7 @@ jobs:
working-directory: ./coverage
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/develop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ name: Release Candidate
on:
push:
branches:
- 'develop'
- "develop"
tags:
- '*'
- "*"

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 14C
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
- run: yarn --frozen-lockfile
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js 14
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
- run: yarn
- run: yarn build
- name: Upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: build
release:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get current version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
path: "package.json"
prop_path: "version"
- run: echo ${{steps.version.outputs.prop}}
- name: Release snapshot
id: release-snapshot
Expand All @@ -52,4 +52,4 @@ jobs:
tag_name: ${{steps.version.outputs.prop}}-rc
release_name: Release Candidate ${{steps.version.outputs.prop}}
draft: false
prerelease: false
prerelease: false
27 changes: 13 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,45 @@ name: Release & Docker
on:
push:
branches:
- 'master'
- "master"
tags:
- '*'
- "*"

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 14C
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
- run: yarn --frozen-lockfile
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js 14
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
- run: yarn
- run: yarn build
- name: Upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: build
release:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get current version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
path: "package.json"
prop_path: "version"
- run: echo ${{steps.version.outputs.prop}}
- name: Release snapshot
id: release-snapshot
Expand All @@ -57,19 +57,19 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download build
id: download
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: build
path: build
- name: Get current version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
path: "package.json"
prop_path: "version"
- run: echo ${{steps.version.outputs.prop}}
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
Expand All @@ -78,4 +78,3 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: ${{steps.version.outputs.prop}}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sonor",
"version": "0.6.0",
"version": "0.6.1",
"private": true,
"dependencies": {
"@tanstack/react-query": "4.0.5",
Expand Down

0 comments on commit 6cb02ba

Please sign in to comment.