Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): no tgz in changeset pr #6728

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(ci): no tgz in changeset pr
  • Loading branch information
wmertens committed Jul 27, 2024
commit 5f308a02ec99e34a284039438e3220b6f106d2f0
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