diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ccabe69..5419209 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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: