Skip to content

Commit

Permalink
use version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Aug 14, 2024
1 parent ea251a5 commit 6410a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/defineVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function defineReleaseVersion({ core }, targetReleaseLevel, givenVersion) {
return parsedPlayerVersion;
}

module.exports = { defineReleaseVersion, getPlayerUiVersion };
module.exports.defineReleaseVersion = defineReleaseVersion;
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Extract version from tag
- name: Read package.json version
uses: actions/github-script@v6
id: extract-version
with:
script: |
const defineVersion = require('./.github/scripts/defineVersion.js')
return defineVersion.getPlayerUiVersion("v3.67.0")
const { version } = require('./package.json')
core.setOutput('packageJsonVersion', version)
- uses: actions/download-artifact@v3
with:
Expand All @@ -50,7 +50,7 @@ jobs:
uses: ./.github/actions/publish-docs
with:
docs_path: './docs/'
destination_path: "player/ui/${{ fromJson(steps.extract-version.outputs.result).full }}/"
destination_path: "player/ui/${{ steps.extract-version.outputs.packageJsonVersion }}/"
bucket: ${{ secrets.GCS_BUCKET }}
credentials_json: ${{ secrets.GCS_CREDENTIALS }}

Expand Down

0 comments on commit 6410a5d

Please sign in to comment.