Skip to content

Commit 016f537

Browse files
authored
Move flipping into format task to prevent release step to fail (#12)
1 parent bdcd71e commit 016f537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"scripts": {
3737
"deploy": "sam build && sam deploy",
3838
"deploy-guided": "sam build && sam deploy --guided",
39-
"echo-version": "npm run flip && echo v`node -e \"console.log(require('node-yaml').readSync('template-flipped.yaml').Mappings.Solution.Constants.Version)\"`",
39+
"echo-version": "echo v`node -e \"console.log(require('node-yaml').readSync('template-flipped.yaml').Mappings.Solution.Constants.Version)\"`",
4040
"flip": "cfn-flip -c -n -l template.yaml template-flipped.yaml",
41-
"format-version": "VERSION=$(npm run echo-version --silent);sed -i '' -e \"3s/.*/Description: Frontend Service Discovery on AWS (uksb-1tthgi8k7) (version:$VERSION)/\" template.yaml",
41+
"format-version": "npm run flip;VERSION=$(npm run echo-version --silent);sed -i '' -e \"3s/.*/Description: Frontend Service Discovery on AWS (uksb-1tthgi8k7) (version:$VERSION)/\" template.yaml",
4242
"test": "jest"
4343
},
4444
"type": "module"

0 commit comments

Comments
 (0)