38
38
run : npm run ${{ matrix.script.command }}
39
39
40
40
publish :
41
- name : Publish
41
+ name : ' Publish: Release '
42
42
needs :
43
43
- verify
44
44
if : contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref)
@@ -49,14 +49,14 @@ jobs:
49
49
with :
50
50
fetch-depth : 0
51
51
52
- - name : Setup Project
52
+ - name : Setup project
53
53
uses : ./.github/actions/setup
54
54
55
55
- name : Build Project
56
56
run : npm run build
57
57
shell : bash
58
58
59
- - name : Semantic Release
59
+ - name : Semantic release
60
60
env :
61
61
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
62
id : release
71
71
if : ${{ steps.release.outputs.new_tag_version != '' }}
72
72
run : npm publish ./dist/*.tgz --tag ${{ (github.head_ref || github.ref_name) == 'main' && 'latest' || github.head_ref || github.ref_name }}
73
73
shell : bash
74
+
75
+ # dev-publish:
76
+ # name: 'Publish: Dev'
77
+ # needs:
78
+ # - verify
79
+ # if: contains(fromJson('["refs/heads/alpha", "refs/heads/beta", "refs/heads/main"]'), github.ref) == 'false'
80
+ # runs-on: ubuntu-latest
81
+ # steps:
82
+ # - name: Checkout
83
+ # uses: actions/checkout@v4
84
+ # with:
85
+ # fetch-depth: 0
86
+
87
+ # - name: Setup project
88
+ # uses: ./.github/actions/setup
89
+
90
+ # - name: Build project
91
+ # run: npm run build
92
+ # shell: bash
93
+
94
+ # - name: Get current version
95
+ # run: echo "PACKAGE_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_ENV
96
+
97
+ # - name: Setup dev version
98
+ # run: echo "BRANCH_VERSION=$PACKAGE_VERSION-$BRANCH_NAME.${GITHUB_SHA::7}" >> $GITHUB_ENV
99
+
100
+ # - name: Bump version
101
+ # run: npm version $BRANCH_VERSION --no-git-tag-version --force
102
+
103
+ # - name: Publish a dev release
104
+ # run: npm publish --tag dev
0 commit comments