Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit c4148a6

Browse files
committed
fix(Release): Set GH_TOKEN to trigger release
Signed-off-by: grzesuav <grzesuav@gmail.com>
1 parent 3293ede commit c4148a6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/release-docker.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Release docker image
33
on:
4-
create:
4+
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77
jobs:
@@ -27,7 +27,6 @@ jobs:
2727
name: Release docker image
2828
runs-on: ubuntu-18.04
2929
needs: ['tests']
30-
if: startsWith(github.ref, 'refs/tags/v')
3130
steps:
3231
- name: Checkout
3332
uses: actions/checkout@v2

.github/workflows/test-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Test and Release (if on master)
3-
on: [push, pull_request]
3+
on: [push]
44
jobs:
55
tests:
66
runs-on: ubuntu-18.04
@@ -35,5 +35,5 @@ jobs:
3535
run: npm install ci
3636
- name: Release
3737
env:
38-
GITHUB_TOKEN: ${{ secrets.PAT }}
38+
GH_TOKEN: ${{ secrets.PAT }}
3939
run: npx semantic-release

0 commit comments

Comments
 (0)