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

chore(icons): twitter, linkedin, instagram, globe, translate, strikethrough #17

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/build-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18

- name: Install Node.js packages and run 'build' command
run: yarn && yarn build
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Auto bump version

on:
pull_request:
branches:
- main
- master

jobs:
# If pull request was merged then we should check for a package version update
check-for-no-version-changing:
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2
with:
fetch-depth: 0

# Get package new version name
- name: Get package info
id: packageNew
uses: codex-team/action-nodejs-package-info@v1

# Checkout to the base commit before merge
- name: Checkout to the base commit before merge
run: git checkout ${{ github.event.pull_request.base.sha }}

# Get package old version name
- name: Get package info
id: packageOld
uses: codex-team/action-nodejs-package-info@v1

# Stop workflow and do not bump version if it was changed already
- name: Stop workflow and do not bump version if it was changed already
uses: actions/github-script@v3
if: steps.packageOld.outputs.version != steps.packageNew.outputs.version
with:
script: |
core.setFailed('Version was changed! ${{ steps.packageOld.outputs.version }} -> ${{ steps.packageNew.outputs.version }}')

bump-version:
needs: check-for-no-version-changing
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2

# Setup node environment
- uses: actions/setup-node@v1
with:
node-version: 18

# Bump version to the next prerelease (patch) with rc suffix
- name: Suggest the new version
run: yarn version --prerelease --preid rc --no-git-tag-version

# Get package new version name
- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1

# Commit and push changes
- uses: EndBug/add-and-commit@v7
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: "Bump version up to ${{ steps.package.outputs.version }}"
16 changes: 14 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/

- run: yarn
- run: yarn build
- run: yarn publish --access=public
- run: yarn publish --access=public --tag=next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1.1

- name: Add LATEST tag for the published package if this is not a -rc version
if: steps.package.outputs.is-release-candidate == 'false'
run: npm dist-tag add ${{ steps.package.outputs.name }}@${{ steps.package.outputs.version }} latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

notify:
needs: publish
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ You will get the line: `<svg xmlns="http://www.w3.org/2000/svg" ...`
| ![IconChevronRight](dist/icons/IconChevronRight.svg) | `IconChevronRight` |
| ![IconChevronUp](dist/icons/IconChevronUp.svg) | `IconChevronUp` |
| ![IconClipboard](dist/icons/IconClipboard.svg) | `IconClipboard` |
| ![IconCode](dist/icons/IconCode.svg) | `IconCode` |
talyguryn marked this conversation as resolved.
Show resolved Hide resolved
| ![IconCollapse](dist/icons/IconCollapse.svg) | `IconCollapse` |
| ![IconColor](dist/icons/IconColor.svg) | `IconColor` |
| ![IconCopy](dist/icons/IconCopy.svg) | `IconCopy` |
Expand All @@ -65,13 +64,15 @@ You will get the line: `<svg xmlns="http://www.w3.org/2000/svg" ...`
| ![IconEtcVertical](dist/icons/IconEtcVertical.svg) | `IconEtcVertical` |
| ![IconFile](dist/icons/IconFile.svg) | `IconFile` |
| ![IconGift](dist/icons/IconGift.svg) | `IconGift` |
| ![IconGlobe](dist/icons/IconGlobe.svg) | `IconGlobe` |
| ![IconHeading](dist/icons/IconHeading.svg) | `IconHeading` |
| ![IconHeart](dist/icons/IconHeart.svg) | `IconHeart` |
| ![IconHidden](dist/icons/IconHidden.svg) | `IconHidden` |
| ![IconHtml](dist/icons/IconHtml.svg) | `IconHtml` |
| ![IconInlineCode](dist/icons/IconInlineCode.svg) | `IconInlineCode` |
| ![IconInstagram](dist/icons/IconInstagram.svg) | `IconInstagram` |
| ![IconItalic](dist/icons/IconItalic.svg) | `IconItalic` |
| ![IconLink](dist/icons/IconLink.svg) | `IconLink` |
| ![IconLinkedin](dist/icons/IconLinkedin.svg) | `IconLinkedin` |
| ![IconListBulleted](dist/icons/IconListBulleted.svg) | `IconListBulleted` |
| ![IconListNumbered](dist/icons/IconListNumbered.svg) | `IconListNumbered` |
| ![IconMarker](dist/icons/IconMarker.svg) | `IconMarker` |
Expand All @@ -88,11 +89,14 @@ You will get the line: `<svg xmlns="http://www.w3.org/2000/svg" ...`
| ![IconSearch](dist/icons/IconSearch.svg) | `IconSearch` |
| ![IconStar](dist/icons/IconStar.svg) | `IconStar` |
| ![IconStretch](dist/icons/IconStretch.svg) | `IconStretch` |
| ![IconStrikethrough](dist/icons/IconStrikethrough.svg) | `IconStrikethrough` |
| ![IconTableWithHeadings](dist/icons/IconTableWithHeadings.svg) | `IconTableWithHeadings` |
| ![IconTableWithoutHeadings](dist/icons/IconTableWithoutHeadings.svg) | `IconTableWithoutHeadings` |
| ![IconTable](dist/icons/IconTable.svg) | `IconTable` |
| ![IconText](dist/icons/IconText.svg) | `IconText` |
| ![IconTranslate](dist/icons/IconTranslate.svg) | `IconTranslate` |
| ![IconTrash](dist/icons/IconTrash.svg) | `IconTrash` |
| ![IconTwitter](dist/icons/IconTwitter.svg) | `IconTwitter` |
| ![IconUnderline](dist/icons/IconUnderline.svg) | `IconUnderline` |
| ![IconUndo](dist/icons/IconUndo.svg) | `IconUndo` |
| ![IconUnlink](dist/icons/IconUnlink.svg) | `IconUnlink` |
Expand Down
1 change: 0 additions & 1 deletion dist/icons/IconCode.svg

This file was deleted.

1 change: 1 addition & 0 deletions dist/icons/IconGlobe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion dist/icons/IconInlineCode.svg

This file was deleted.

1 change: 1 addition & 0 deletions dist/icons/IconInstagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/icons/IconLinkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/icons/IconReplace.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/icons/IconStar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/icons/IconStrikethrough.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/icons/IconTranslate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/icons/IconTwitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 55 additions & 51 deletions dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codexteam/icons",
"version": "0.0.6",
"version": "0.0.7-rc.0",
"main": "dist/index.umd.js",
"module": "dist/index.mjs",
"license": "MIT",
Expand Down
5 changes: 0 additions & 5 deletions src/icons/code.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/icons/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/icons/inline-code.svg

This file was deleted.

5 changes: 5 additions & 0 deletions src/icons/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/icons/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/icons/replace.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading