Skip to content

Commit

Permalink
chore(ops): update
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed Aug 28, 2023
1 parent 1e24a6f commit a5e0204
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit a5e0204

Please sign in to comment.