Skip to content

Commit 80c196f

Browse files
committed
Add deployments to CI and update both CI and CD to tag the deployed version as 'next'
1 parent 08e20c6 commit 80c196f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ jobs:
3131
- uses: JS-DevTools/npm-publish@v3
3232
with:
3333
access: "public"
34+
tag: "next"
3435
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/CI.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,18 @@ jobs:
5858

5959
- name: Build
6060
run: pnpm build
61+
62+
npm:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: P5-wrapper/setup-action@v1.0.6
66+
67+
- name: Build the component
68+
run: pnpm build:component
69+
70+
- uses: JS-DevTools/npm-publish@v3
71+
with:
72+
access: "public"
73+
tag: "next"
74+
dry-run: true
75+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)