Skip to content

Commit cb69588

Browse files
committed
Update release management
1 parent b5f24b9 commit cb69588

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ jobs:
2929
- name: Update package.json version
3030
run: |
3131
tmp=$(mktemp)
32-
jq '.version = "${{ steps.ref.outputs.tag }}"' package.json > "$tmp"
32+
VERSION=${TAG#"v"}
33+
jq ".version = \"$VERSION\"" package.json > "$tmp"
3334
mv "$tmp" package.json
35+
env:
36+
TAG: ${{ steps.ref.outputs.tag }}
3437

3538
- name: Build lambda distribution
3639
run: yarn dist

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "terraform-aws-lambda",
3-
"version": "v0.0.0",
4-
"description": "",
3+
"version": "0.1.0",
54
"scripts": {
65
"test": "mocha -r ts-node/register test/**/*.spec.ts",
76
"test:watch": "yarn test --watch --watch-extensions ts",

0 commit comments

Comments
 (0)