Skip to content

Commit e325c39

Browse files
committed
Consistent pre-release version checks
1 parent 967bb69 commit e325c39

File tree

6 files changed

+7
-20
lines changed

6 files changed

+7
-20
lines changed

templates/android/.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Runs upload, and then closes & releases the repository
3838
- name: Publish Release Version to MavenCentral
3939
run: |
40-
if ${{ endswith(github.event.release.tag_name, '-SNAPSHOT') }}; then
40+
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
4141
echo "Publising Snapshot Version ${{ github.event.release.tag_name}} to Snapshot repository"
4242
./gradlew publishToSonatype
4343
else

templates/cli/.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
npm run mac-arm64
3333
- name: Publish NPM library
3434
run: |
35-
if ${{ contains(github.event.release.tag_name, '-RC') }}; then
35+
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
3636
echo "Publishing Release Candidate ${{ github.event.release.tag_name}} to NPM"
3737
npm publish --tag next
3838
else

templates/kotlin/.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
# Runs upload, and then closes & releases the repository
3636
- name: Publish Release Version to MavenCentral
3737
run: |
38-
if ${{ endswith(github.event.release.tag_name, '-SNAPSHOT') }}; then
38+
if ${{ contains(github.event.release.tag_name, '-rc') }}; then
3939
echo "Publising Snapshot Version ${{ github.event.release.tag_name}} to Snapshot repository"
4040
./gradlew publishToSonatype
4141
else

templates/node/.travis.yml.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node_js:
55
jobs:
66
include:
77
- stage: NPM RC Release
8-
if: tag == *-RC*
8+
if: tag == *-rc*
99
node_js: "14.16"
1010
script: echo "Deploying RC to NPM..."
1111
deploy:
@@ -14,7 +14,7 @@ jobs:
1414
api_key: $NPM_API_KEY
1515
tag: next
1616
- stage: NPM Release
17-
if: tag != *-RC*
17+
if: tag != *-rc*
1818
node_js: "14.16"
1919
script: echo "Deploying to NPM..."
2020
deploy:

templates/swift/.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

templates/web/.travis.yml.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node_js:
55
jobs:
66
include:
77
- stage: NPM RC Release
8-
if: tag == *-RC*
8+
if: tag == *-rc*
99
node_js: "14.16"
1010
script:
1111
- npm install
@@ -17,7 +17,7 @@ jobs:
1717
api_key: $NPM_API_KEY
1818
tag: next
1919
- stage: NPM Release
20-
if: tag != *-RC*
20+
if: tag != *-rc*
2121
node_js: "14.16"
2222
script:
2323
- npm install

0 commit comments

Comments
 (0)