Skip to content

Commit

Permalink
fix(ci): no tgz in changeset pr (#6728)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored Jul 27, 2024
1 parent f6aa020 commit 444b77f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,20 @@ jobs:
- run: pnpm install --frozen-lockfile

# Do this before other release steps to avoid
# publishing temporary files
- name: Create Release Pull Request or Publish to npm
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
id: changesets
uses: changesets/action@v1
with:
version: pnpm version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit Build Artifacts
if: github.event_name == 'push'
env:
Expand All @@ -813,18 +827,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release Pull Request or Publish to npm
if: github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
id: changesets
uses: changesets/action@v1
with:
#version: pnpm version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish manually
if: github.event_name == 'workflow_dispatch'
run: pnpm build --set-dist-tag="${{ github.event.inputs.disttag }}" --validate --release
Expand Down

0 comments on commit 444b77f

Please sign in to comment.