Skip to content

Commit 3bd9546

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent 8208da6 commit 3bd9546

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

‎.github/workflows/tag-publish.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
11
name: Test and publish to registries after new tag
22

3-
# on:
4-
# push:
5-
# tags: ["v[0-9].[0-9]+.[0-9]+"]
63
on:
74
release:
85
types: [published]
96

107
jobs:
11-
logtag:
12-
name: Tag Name
13-
# if: startsWith(github.event.ref, 'refs/tags/v')
14-
if: ${{github.event.release.prerelease == true }}
15-
runs-on: ubuntu-latest
16-
env:
17-
RELEASE_CONTEXT: ${{ toJson(github.event.release) }}
18-
steps:
19-
- name: Log Tag Name
20-
run: |
21-
echo ${GITHUB_REF##*/}
22-
echo "event name is:" ${{ github.event_name }}
23-
echo "event type is:" ${{ github.event.action }}
24-
echo "event release tag_name is:" ${{ github.event.release.tag_name }}
25-
echo "event prerelease is:" ${{ github.event.release.prerelease }}
26-
echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }}
27-
echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }}
28-
echo "$RELEASE_CONTEXT"
29-
308
# init:
319
# uses: ./.github/workflows/00-init.yml
3210

@@ -49,6 +27,26 @@ jobs:
4927
# uses: ./.github/workflows/01-cypress.yml
5028
# needs: [build]
5129

30+
logtag:
31+
name: Tag Name
32+
# needs: [test, cypress]
33+
# if: startsWith(github.event.ref, 'refs/tags/v')
34+
if: ${{github.event.release.prerelease == true }} && startsWith(github.ref, 'refs/tags/v')
35+
runs-on: ubuntu-latest
36+
env:
37+
RELEASE_CONTEXT: ${{ toJson(github.event.release) }}
38+
steps:
39+
- name: Log Tag Name
40+
run: |
41+
echo ${GITHUB_REF##*/}
42+
echo "event name is:" ${{ github.event_name }}
43+
echo "event type is:" ${{ github.event.action }}
44+
echo "event release tag_name is:" ${{ github.event.release.tag_name }}
45+
echo "event prerelease is:" ${{ github.event.release.prerelease }}
46+
echo "event asset dl is:" ${{ github.event.release.assets[0].browser_download_url }}
47+
echo "event asset dl type is:" ${{ github.event.release.assets[0].content_type }}
48+
echo "$RELEASE_CONTEXT"
49+
5250
# publish:
5351
# needs: [test, cypress]
5452
# # if: contains( github.ref, 'test-package-publishing')

0 commit comments

Comments
 (0)