Skip to content

Commit 4af7687

Browse files
committed
Update CI/CD
1 parent 638ceb3 commit 4af7687

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: CI/CD Pipeline
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
tags:
8-
- 'v*.*.*'
4+
release:
5+
types:
6+
- published
97

108
jobs:
119
build-test-deploy:
@@ -34,4 +32,12 @@ jobs:
3432

3533
- name: Publish to npm
3634
if: startsWith(github.ref, 'refs/tags/')
37-
run: npm publish --access public
35+
run: npm publish --access public
36+
37+
- name: Upload Build Artifacts
38+
uses: actions/upload-release-asset@v1
39+
with:
40+
upload_url: ${{ github.event.release.upload_url }}
41+
asset_path: ./dist
42+
asset_name: build.zip
43+
asset_content_type: application/zip

0 commit comments

Comments
 (0)