diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 000a90578..d799eeab5 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -16,18 +16,15 @@ jobs: with: node-version-file: '.nvmrc' - - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 + - run: npm ci + + - name: Resolve Version + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 id: version with: - script: | - const semver = context.ref.replace('refs/tags/v', '') - if (semver.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) { - return semver - } - throw new Error('not semver') + script: return require('./.github/scripts/release-ecr-tags.js')({ context }) result-encoding: string - - run: npm ci - run: npm run all:build - run: npm run all:version ${{ steps.version.outputs.result }}