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

Add picosvg to optimization step #880

Closed
wants to merge 1 commit into from

Conversation

eliperkins
Copy link
Contributor

Related to:

This adds in picosvg to the "Optimize SVGs" workflow, removing fill-rule="evenodd" from all SVGs.

Since picosvg is meant to work on a single file at a time, I used a bash loop to iterate through all files in icons before writing them back out, in-place.

cc @gavinmn @colebemis

@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2022

⚠️ No Changeset found

Latest commit: 5e4813a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Thank you, @eliperkins!

Looks like you need to update the snapshots. This should do the trick:

npm i
npm run build
cd lib/octicons_react
npm i --legacy-peer-deps
npm run test -- -u

@eliperkins
Copy link
Contributor Author

eliperkins commented Dec 15, 2022

@colebemis @gavinmn any advice on getting the Deploy / Preview / Deploy step working? I'm assuming it's because I've contributed from a fork.

Run actions/deploy-pages@v1
[10](https://github.com/primer/octicons/actions/runs/3690040482/jobs/6246685568#step:2:11)
Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable

Are we okay merging this without a preview deploy?

@eliperkins eliperkins temporarily deployed to github-pages December 16, 2022 21:01 — with GitHub Actions Inactive
This should help remove `fill-rule="evenodd"` from SVGs, improving where
they can be rendered.
@eliperkins
Copy link
Contributor Author

Closing this in favor of #883 , since that'll use better permission checks on Actions for deployments.

@eliperkins eliperkins closed this Dec 16, 2022
@eliperkins eliperkins temporarily deployed to github-pages December 16, 2022 21:19 — with GitHub Actions Inactive
@eliperkins eliperkins deleted the ep/picosvg branch January 23, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants