Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaniraiyn committed Jul 12, 2023
1 parent 7812c41 commit 2147d01
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'

- uses: pnpm/action-setup@v2
name: Install pnpm
Expand All @@ -27,17 +28,14 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

# - name: Build packages
# run: pnpm build
- name: Build packages
run: pnpm build

- name: Publish packages
run: |
for package in $(ls packages); do
cd packages/$package
pnpm version patch --no-git-tag
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
echo "@cds-design:registry=https://npm.pkg.github.com" >> .npmrc
pnpm publish --registry=https://npm.pkg.github.com
pnpm publish
cd ../..
done
env:
Expand Down

0 comments on commit 2147d01

Please sign in to comment.