From a5e0204db9e2c4ed08062a8be45d58b55a6cd742 Mon Sep 17 00:00:00 2001 From: JJ Adonis Date: Mon, 28 Aug 2023 15:20:15 +0800 Subject: [PATCH] chore(ops): update --- .github/workflows/release-publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 }}