@treeseed/sdk 0.6.36 → 0.6.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.6.36",
3
+ "version": "0.6.38",
4
4
  "description": "Shared Treeseed SDK for content-backed and D1-backed object models.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -4,9 +4,8 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - staging
7
- - main
8
7
  tags:
9
- - 'v*'
8
+ - '*.*.*'
10
9
  workflow_dispatch:
11
10
  inputs:
12
11
  environment:
@@ -75,12 +74,13 @@ jobs:
75
74
 
76
75
  if [[ "${ref_type}" == "tag" ]]; then
77
76
  scope="prod"
78
- release_tag="true"
79
- compare_ref="$(git rev-list --parents -n 1 "${head_sha}" | awk '{print $2}')"
80
- elif [[ "${ref_name}" == "main" ]]; then
81
- scope="prod"
82
- release_tag="false"
83
- compare_ref="${before_sha}"
77
+ if [[ "${ref_name}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
78
+ release_tag="true"
79
+ compare_ref="$(git rev-list --parents -n 1 "${head_sha}" | awk '{print $2}')"
80
+ else
81
+ release_tag="false"
82
+ compare_ref=""
83
+ fi
84
84
  else
85
85
  scope="staging"
86
86
  release_tag="false"
@@ -94,7 +94,10 @@ jobs:
94
94
  code_changed="false"
95
95
  content_changed="false"
96
96
 
97
- if [[ -n "${compare_ref}" ]]; then
97
+ if [[ "${ref_type}" == "tag" && "${release_tag}" != "true" ]]; then
98
+ code_changed="false"
99
+ content_changed="false"
100
+ elif [[ -n "${compare_ref}" ]]; then
98
101
  while IFS= read -r path; do
99
102
  [[ -z "${path}" ]] && continue
100
103
  case "${path}" in