Skip to content

Commit 86884a8

Browse files
committed
try using min version build step
1 parent 84d3725 commit 86884a8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ jobs:
2626
node-version: ${{ matrix.node_version }}
2727
- name: NPM install with caching
2828
uses: bahmutov/npm-install@v1
29+
- name: Set Min Version
30+
uses: thefringeninja/action-minver
31+
id: version
32+
with:
33+
tag-prefix: v
2934
- name: Build Version
3035
run: |
3136
npm install --global replace-in-files-cli
32-
dotnet tool install --global minver-cli --version 2.5.0
33-
echo $(minver --tag-prefix v) >> $version
34-
echo "MINVERVERSIONOVERRIDE=$version" >> $GITHUB_ENV
35-
npm run version -- $version
36-
replace-in-files --regex='\/(v?((\d+)\.(\d+)(\.(\d+))?)(?:-([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?)' --replacement=/$version packages/core/src/configuration/Configuration.ts
37+
echo "MINVERVERSIONOVERRIDE=${{steps.version.outputs.version}}" >> $GITHUB_ENV
38+
npm run version -- ${{steps.version.outputs.version}}
39+
replace-in-files --regex='\/(v?((\d+)\.(\d+)(\.(\d+))?)(?:-([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?)' --replacement=/${{steps.version.outputs.version}} packages/core/src/configuration/Configuration.ts
3740
- name: Build
3841
run: npm run build
3942
- name: Lint

0 commit comments

Comments
 (0)