Skip to content

Commit 3b33e0d

Browse files
committed
fix: archive dist
1 parent caff88d commit 3b33e0d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
- name: Build package
4848
run: npm run build
4949

50+
- name: Archive build artifacts
51+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || github.ref == 'refs/heads/next'
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: dist
55+
path: dist
56+
5057
- name: Deploy Storybook
5158
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
5259
uses: bitovi/[email protected]
@@ -57,9 +64,14 @@ jobs:
5764
env:
5865
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
5966

67+
- uses: actions/download-artifact@v3
68+
with:
69+
name: dist
70+
path: dist
71+
6072
- name: Release
6173
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
6274
env:
6375
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6476
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65-
run: npx semantic-release
77+
run: npx semantic-release --ci

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/daphnesmit/use-awesome-websocket"
18+
"url": "git+https://github.com/daphnesmit/use-awesome-websocket.git"
1919
},
2020
"scripts": {
2121
"dev": "concurrently \"npm run build --watch\" \"npm run storybook\" \"npm run test\" ",

0 commit comments

Comments
 (0)