Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,33 @@ on:
- "*"

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v4
- run: yarn --frozen-lockfile
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Use Node.js
uses: actions/setup-node@v4
- run: yarn
- run: yarn run test
- run: yarn build
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm test

- name: Build
run: pnpm build

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build
path: build
path: build
6 changes: 3 additions & 3 deletions .github/workflows/develop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
steps:
- name: Use Node.js
uses: actions/setup-node@v4
- run: yarn --frozen-lockfile
- run: pnpm --frozen-lockfile
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
- run: yarn
- run: yarn build
- run: pnpm run
- run: pnpm build
- name: Upload build
uses: actions/upload-artifact@v4
with:
Expand Down
41 changes: 27 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,34 @@ on:
- '*'

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v4
- run: yarn --frozen-lockfile
build:
install-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
- run: yarn
- run: yarn build

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build
path: build

release:
runs-on: ubuntu-latest
steps:
Expand All @@ -49,29 +58,33 @@ jobs:
release_name: ${{steps.version.outputs.prop}}
draft: false
prerelease: false

docker:
needs: build
needs: install-and-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Download build
id: download
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'

- run: echo ${{steps.version.outputs.prop}}

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: inseefr/moog
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: ${{steps.version.outputs.prop}}

tags: ${{steps.version.outputs.prop}}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "front-moog",
"version": "2.2.9",
"version": "2.3.0",
"private": true,
"dependencies": {
"axios": "^0.30.2",
"babel-polyfill": "^6.23.0",
"eslint": "^8.57.0",
"file-saver": "^2.0.5",
"json2csv": "^5.0.5",
"keycloak-js": "26.0.5",
Expand Down Expand Up @@ -49,8 +50,8 @@
"eslint-plugin-react": "^7.37.1",
"prettier": "^1.19.1"
},
"resolutions": {
"react-js-pagination/tar": "^6.1.9",
"**/nth-check": "2.1.1"
"resolutions": {
"tar": "^6.1.9",
"nth-check": "2.1.1"
}
}
Loading
Loading