Skip to content

Commit

Permalink
ci: fixed versionning model
Browse files Browse the repository at this point in the history
  • Loading branch information
JLou committed Nov 5, 2024
1 parent 2bc350d commit 53291db
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/publish-look-and-feel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,30 @@ jobs:
with:
node-version: "*" # Use the LTS Node.js version
cache: "npm"
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: '5.x'
versionSpec: "5.x"
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
uses: gittools/actions/gitversion/[email protected]
with:
configFilePath: "GitVersion-look-and-feel.yml"
- run: npm run package:check
- run: npm ci
- run: npm run build:look-and-feel
- run: npm version "${{ steps.gitversion.outputs.fullSemVer }}" -w look-and-feel/css -w look-and-feel/react
- name: Set to react package the @axa-fr/design-system-look-and-feel-css dependency version
- run:
npm version "${{ steps.gitversion.outputs.fullSemVer }}" -w
look-and-feel/css -w look-and-feel/react
- name:
Set to react package the @axa-fr/design-system-look-and-feel-css
dependency version
run: |
cd look-and-feel/react
jq '.peerDependencies["@axa-fr/design-system-look-and-feel-css"] = "${{ steps.gitversion.outputs.fullSemVer }}"' package.json > temp.json && mv temp.json package.json
- run: npm publish -w look-and-feel/css -w look-and-feel/react --access public
- run:
npm publish -w look-and-feel/css -w look-and-feel/react --access
public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-slash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: "5.x"
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
uses: gittools/actions/gitversion/execute@v3.0.0
with:
configFilePath: "GitVersion-slash.yml"
- run: npm run package:check
Expand Down
4 changes: 4 additions & 0 deletions GitVersion-look-and-feel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mode: ContinuousDeployment
tag-prefix: 'look-and-feel/'
next-version: 0.3.0
commit-message-incrementing: Disabled
6 changes: 4 additions & 2 deletions GitVersion-slash.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mode: ContinuousDelivery

mode: ContinuousDeployment
tag-prefix: 'slash/'
commit-message-incrementing: Disabled
next-version: 1.0.0
commit-message-incrementing: Disabled

0 comments on commit 53291db

Please sign in to comment.