Skip to content

Commit de33343

Browse files
committed
ci: trigger the npm release on bare version tags
Releases in this repo are tagged with the plain version (4.0.9), so the v-only tag filter would never have fired. Bare and v-prefixed tags now both trigger the publish; the tag-matches-package.json check already accepted either.
1 parent 4284424 commit de33343

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/npm_release.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: '@nativescript/tailwind -> npm'
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
# Releases are tagged with the bare version (4.0.9); a v-prefixed tag is accepted too.
7+
- '[0-9]*'
8+
- 'v[0-9]*'
79
workflow_dispatch:
810
inputs:
911
dry-run:
@@ -49,7 +51,7 @@ jobs:
4951
npm --version
5052
5153
# The published version is package.json's; a release tag must agree with it
52-
# (v4.0.10 -> 4.0.10). The npm dist-tag follows the version: a prerelease label
54+
# (4.0.10, or v4.0.10). The npm dist-tag follows the version: a prerelease label
5355
# becomes the tag (4.1.0-rc.0 -> rc, numeric labels -> next), stable -> latest.
5456
- name: Resolve release context
5557
id: ctx

0 commit comments

Comments
 (0)