Skip to content

Commit

Permalink
install npm root dependencies & cut s in front of version string
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Feb 5, 2025
1 parent 9dab2d9 commit 3b853b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/PublishNpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Extract Latest Tag as Version
id: get_version
run: echo "GIT_TAG_LATEST=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
run: echo "GIT_TAG_LATEST=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> "$GITHUB_ENV"

- name: Install Node.js
uses: actions/setup-node@v4
Expand All @@ -35,6 +35,9 @@ jobs:
- name: Restore .NET dependencies
run: dotnet tool restore

- name: Install root NPM Dependencies
run: npm install

- name: Install NPM Dependencies
run: npm install
working-directory: src/Components
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PublishNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Extract Latest Tag as Version
id: get_version
run: echo "GIT_TAG_LATEST=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
run: echo "GIT_TAG_LATEST=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> "$GITHUB_ENV"

- name: Debug GIT_TAG_LATEST
run: echo "Version extracted; $GIT_TAG_LATEST"
Expand Down

0 comments on commit 3b853b0

Please sign in to comment.