Skip to content

Commit

Permalink
Merge pull request #141 from usermaven/next
Browse files Browse the repository at this point in the history
chore: Verify package version
  • Loading branch information
seeratawan01 authored Oct 23, 2024
2 parents dd0c390 + 5471d23 commit ad516b6
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions .github/workflows/cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: packages-dist
path: packages/*/dist
name: packages-artifacts
path: |
packages/*/dist/**
packages/*/package.json
packages/*/README.md
retention-days: 1



publish-sdk:
needs: build
runs-on: ubuntu-latest
Expand All @@ -93,17 +97,21 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
run: npm install -g pnpm

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: packages-dist
path: packages
name: packages-artifacts
path: .

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Verify package version
run: |
cat packages/javascript-sdk/package.json
- name: Publish SDK
env:
Expand All @@ -112,6 +120,7 @@ jobs:
run: |
cd packages/javascript-sdk
pnpm publish --no-git-checks --tag rc --access public

publish-nextjs:
needs: publish-sdk
Expand All @@ -126,14 +135,18 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
run: npm install -g pnpm

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: packages-dist
path: packages
name: packages-artifacts
path: .

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile


- name: Publish NextJS package
env:
Expand All @@ -156,14 +169,18 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
run: npm install -g pnpm

- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: packages-dist
path: packages
name: packages-artifacts
path: .

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile



- name: Publish React package
Expand All @@ -181,8 +198,8 @@ jobs:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: packages-dist
path: packages
name: packages-artifacts
path: .


- name: Deploy to BunnyCDN
Expand Down Expand Up @@ -226,8 +243,8 @@ jobs:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: packages-dist
path: packages
name: packages-artifacts
path: .

- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand Down

0 comments on commit ad516b6

Please sign in to comment.