diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..b882671 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,49 @@ +name: Tests and publishing +env: + FORCE_COLOR: 1 +on: + push: + branches: + - master + - main +jobs: + tag: + name: "Publishing release" + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-node@v2 + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + - uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - name: Read version from package.json + uses: culshaw/read-package-node-version-actions@v1 + id: package-node-version + - name: Changelog + uses: scottbrenner/generate-changelog-action@master + id: Changelog + - name: Github Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ steps.package-node-version.outputs.version }} + body: | + ${{ steps.Changelog.outputs.changelog }} + draft: false + prerelease: false + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ccf141e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: node_js -node_js: stable diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 65a3c57..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,240 +0,0 @@ - -## [2.0.5](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...2.0.5) (2018-11-28) - - -### Docs - -* Adding readme file ([c32f9e7c555af19cf9a4c8d916d061cbaaf9623b](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b)) - -### Fix - -* Fixing styles in narrow view ([a9b7b34329748a67d65ac61b62ad4b84994f3c46](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46)) - -### Update - -* Removing unsued files and dependencies ([a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1)) -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) - - - - -## [2.0.4](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...2.0.4) (2018-11-28) - - -### Docs - -* Adding readme file ([c32f9e7c555af19cf9a4c8d916d061cbaaf9623b](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b)) - -### Fix - -* Fixing styles in narrow view ([a9b7b34329748a67d65ac61b62ad4b84994f3c46](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46)) - -### Update - -* Removing unsued files and dependencies ([a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1)) -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) - - - - -## [2.0.3](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...2.0.3) (2018-08-23) - - -### Docs - -* Adding readme file ([c32f9e7c555af19cf9a4c8d916d061cbaaf9623b](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b)) - -### Fix - -* Fixing styles in narrow view ([a9b7b34329748a67d65ac61b62ad4b84994f3c46](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46)) - -### Update - -* Removing unsued files and dependencies ([a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1)) -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) - - - - -## [2.0.2](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...2.0.2) (2018-03-15) - - -### Update - -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) - - - -# [3.0.0](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...3.0.0) (2019-05-31) - - -### Breaking - -* updating to Polymer version 3 ([5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6](https://github.com/advanced-rest-client/markdown-styles/commit/5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6)) - -### Docs - -* Adding readme file ([c32f9e7c555af19cf9a4c8d916d061cbaaf9623b](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b)) -* Updating readme file ([71400535e70c1b74f815d1c3b81a21295ff5aab8](https://github.com/advanced-rest-client/markdown-styles/commit/71400535e70c1b74f815d1c3b81a21295ff5aab8)) - -### Fix - -* Fixing styles in narrow view ([a9b7b34329748a67d65ac61b62ad4b84994f3c46](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46)) - -### New - -* Adding NPM ignore file ([b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1](https://github.com/advanced-rest-client/markdown-styles/commit/b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1)) - -### Update - -* Removing unsued files and dependencies ([a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1)) -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) -* Updating CI configuration ([84ed47ebdee32e0ec4960fde360322a99ac64021](https://github.com/advanced-rest-client/markdown-styles/commit/84ed47ebdee32e0ec4960fde360322a99ac64021)) -* Updating import path to match web spec ([39e95f1232ddd9f48f81eabb927c4713ea6fe29e](https://github.com/advanced-rest-client/markdown-styles/commit/39e95f1232ddd9f48f81eabb927c4713ea6fe29e)) -* Updating travis config ([ab13b3fc97f477a29900610da532724dc33b722b](https://github.com/advanced-rest-client/markdown-styles/commit/ab13b3fc97f477a29900610da532724dc33b722b)) - - - -# [3.1.0](https://github.com/advanced-rest-client/markdown-styles/compare/1.0.7...3.1.0) (2019-06-15) - - -### Breaking - -* updating to Polymer version 3 ([5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6](https://github.com/advanced-rest-client/markdown-styles/commit/5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6)) - -### Docs - -* Adding readme file ([c32f9e7c555af19cf9a4c8d916d061cbaaf9623b](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b)) -* Updating docs ([dd326e196461c37c61b683a73f4e8e804c898263](https://github.com/advanced-rest-client/markdown-styles/commit/dd326e196461c37c61b683a73f4e8e804c898263)) -* Updating readme file ([71400535e70c1b74f815d1c3b81a21295ff5aab8](https://github.com/advanced-rest-client/markdown-styles/commit/71400535e70c1b74f815d1c3b81a21295ff5aab8)) - -### Fix - -* Fixing styles in narrow view ([a9b7b34329748a67d65ac61b62ad4b84994f3c46](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46)) - -### New - -* Adding NPM ignore file ([b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1](https://github.com/advanced-rest-client/markdown-styles/commit/b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1)) - -### Update - -* Removing unsued files and dependencies ([a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1)) -* Updated Travis configuration to connect to Sauce Labs. ([4de68651bfa8d24d62378cb562c9132ea4d05db8](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8)) -* Updating CI configuration ([84ed47ebdee32e0ec4960fde360322a99ac64021](https://github.com/advanced-rest-client/markdown-styles/commit/84ed47ebdee32e0ec4960fde360322a99ac64021)) -* Updating import path to match web spec ([39e95f1232ddd9f48f81eabb927c4713ea6fe29e](https://github.com/advanced-rest-client/markdown-styles/commit/39e95f1232ddd9f48f81eabb927c4713ea6fe29e)) -* Updating travis config ([ab13b3fc97f477a29900610da532724dc33b722b](https://github.com/advanced-rest-client/markdown-styles/commit/ab13b3fc97f477a29900610da532724dc33b722b)) -* Updating travis config ([74369a9634f832215b625de1c8d05061a8fa8669](https://github.com/advanced-rest-client/markdown-styles/commit/74369a9634f832215b625de1c8d05061a8fa8669)) - - - - -## [3.1.1](https://github.com/advanced-rest-client/markdown-styles/compare/3.0.0...3.1.1) (2019-12-02) - -### Build - -* bumping version [18e22c9](https://github.com/advanced-rest-client/markdown-styles/commit/18e22c9481128fb2206784652573dfe6cb12950b) by Pawel Psztyc - - -### Bug Fixes - -* fixing syntax for polyfils [c38e2d6](https://github.com/advanced-rest-client/markdown-styles/commit/c38e2d65c63427b7d3d83c1bc6fa1b1b89d7bed3) by Pawel Psztyc - - -### Other - -* Docs: Updating docs - [dd326e1](https://github.com/advanced-rest-client/markdown-styles/commit/dd326e196461c37c61b683a73f4e8e804c898263) by Pawel -* Update: Updating travis config - [74369a9](https://github.com/advanced-rest-client/markdown-styles/commit/74369a9634f832215b625de1c8d05061a8fa8669) by Pawel -* Docs: Updating readme file - [7140053](https://github.com/advanced-rest-client/markdown-styles/commit/71400535e70c1b74f815d1c3b81a21295ff5aab8) by Pawel Psztyc -* Update: Updating import path to match web spec - [39e95f1](https://github.com/advanced-rest-client/markdown-styles/commit/39e95f1232ddd9f48f81eabb927c4713ea6fe29e) by Pawel Psztyc -* New: Adding NPM ignore file - [b3c7f50](https://github.com/advanced-rest-client/markdown-styles/commit/b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1) by Pawel Psztyc -* Update: Updating CI configuration - [84ed47e](https://github.com/advanced-rest-client/markdown-styles/commit/84ed47ebdee32e0ec4960fde360322a99ac64021) by Pawel Psztyc -* Update: Updating travis config - [ab13b3f](https://github.com/advanced-rest-client/markdown-styles/commit/ab13b3fc97f477a29900610da532724dc33b722b) by Pawel Psztyc -* Breaking: updating to Polymer version 3 - [5bcd2c0](https://github.com/advanced-rest-client/markdown-styles/commit/5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6) by Pawel Psztyc -* Update: Removing unsued files and dependencies - [a4ddfcb](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1) by Pawel Psztyc -* Docs: Adding readme file - [c32f9e7](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b) by Pawel Psztyc -* Fix: Fixing styles in narrow view - [a9b7b34](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46) by Pawel Psztyc -* Update: Updated Travis configuration to connect to Sauce Labs. - [4de6865](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8) by Pawel Psztyc -* Update: added margins for h1 - [16f1649](https://github.com/advanced-rest-client/markdown-styles/commit/16f1649a719c9e27d9725387bc673bd2b29749e2) by Pawel Psztyc -* Update: Added mase mixin - [b77bb4b](https://github.com/advanced-rest-client/markdown-styles/commit/b77bb4bd9d2888b5bdf226f2bed0b9732d71ca1b) by Pawel Psztyc -* Update: Updated styles to match theming - [30bc317](https://github.com/advanced-rest-client/markdown-styles/commit/30bc3173be19f76e476ae6676b4fac35de49260d) by CI Agent -* Update: Updated styles definitions - [d22aa05](https://github.com/advanced-rest-client/markdown-styles/commit/d22aa05757133460dadfc1183da9e00fb673b039) by jarrodek -* Update: Added markdown rules - [151d530](https://github.com/advanced-rest-client/markdown-styles/commit/151d53029dd57fe74c901be00d52c309b4d8ab27) by jarrodek - - - -## [3.1.3](https://github.com/advanced-rest-client/markdown-styles/compare/3.1.1...3.1.3) (2020-10-01) - -### Build - -* bumping version [026b8b5](https://github.com/advanced-rest-client/markdown-styles/commit/026b8b51e20041925d6924ffbc40e4d4c1deb6f7) by Pawel -* bumping version [18e22c9](https://github.com/advanced-rest-client/markdown-styles/commit/18e22c9481128fb2206784652573dfe6cb12950b) by Pawel Psztyc - - -### Update - -* updating project meta [214dd05](https://github.com/advanced-rest-client/markdown-styles/commit/214dd0573aa0855698f2aa66b7444e73abff6247) by Pawel -* updating types [e15030d](https://github.com/advanced-rest-client/markdown-styles/commit/e15030d583a771277cbf67fc9e895c02488bf097) by Pawel -* upgrading dependencies [70121df](https://github.com/advanced-rest-client/markdown-styles/commit/70121df8fccb54b5084cae5cbc21e4290316a1eb) by Pawel - - -### Bug Fixes - -* adding missing color veriables [c4ad0ad](https://github.com/advanced-rest-client/markdown-styles/commit/c4ad0ad7457de2e1cda3768e56c7e2afcf83284b) by Pawel -* fixing syntax for polyfils [c38e2d6](https://github.com/advanced-rest-client/markdown-styles/commit/c38e2d65c63427b7d3d83c1bc6fa1b1b89d7bed3) by Pawel Psztyc - - -### Other - -* Docs: Updating docs - [dd326e1](https://github.com/advanced-rest-client/markdown-styles/commit/dd326e196461c37c61b683a73f4e8e804c898263) by Pawel -* Update: Updating travis config - [74369a9](https://github.com/advanced-rest-client/markdown-styles/commit/74369a9634f832215b625de1c8d05061a8fa8669) by Pawel -* Docs: Updating readme file - [7140053](https://github.com/advanced-rest-client/markdown-styles/commit/71400535e70c1b74f815d1c3b81a21295ff5aab8) by Pawel Psztyc -* Update: Updating import path to match web spec - [39e95f1](https://github.com/advanced-rest-client/markdown-styles/commit/39e95f1232ddd9f48f81eabb927c4713ea6fe29e) by Pawel Psztyc -* New: Adding NPM ignore file - [b3c7f50](https://github.com/advanced-rest-client/markdown-styles/commit/b3c7f50317680ec4f863af5b6eefbd5a1fbc3dd1) by Pawel Psztyc -* Update: Updating CI configuration - [84ed47e](https://github.com/advanced-rest-client/markdown-styles/commit/84ed47ebdee32e0ec4960fde360322a99ac64021) by Pawel Psztyc -* Update: Updating travis config - [ab13b3f](https://github.com/advanced-rest-client/markdown-styles/commit/ab13b3fc97f477a29900610da532724dc33b722b) by Pawel Psztyc -* Breaking: updating to Polymer version 3 - [5bcd2c0](https://github.com/advanced-rest-client/markdown-styles/commit/5bcd2c0e5d7f763e3a1bbf87e26e15081ee26eb6) by Pawel Psztyc -* Update: Removing unsued files and dependencies - [a4ddfcb](https://github.com/advanced-rest-client/markdown-styles/commit/a4ddfcbbee3fa95afe9e8f4c7cf8fcc953c8f2c1) by Pawel Psztyc -* Docs: Adding readme file - [c32f9e7](https://github.com/advanced-rest-client/markdown-styles/commit/c32f9e7c555af19cf9a4c8d916d061cbaaf9623b) by Pawel Psztyc -* Fix: Fixing styles in narrow view - [a9b7b34](https://github.com/advanced-rest-client/markdown-styles/commit/a9b7b34329748a67d65ac61b62ad4b84994f3c46) by Pawel Psztyc -* Update: Updated Travis configuration to connect to Sauce Labs. - [4de6865](https://github.com/advanced-rest-client/markdown-styles/commit/4de68651bfa8d24d62378cb562c9132ea4d05db8) by Pawel Psztyc -* Update: added margins for h1 - [16f1649](https://github.com/advanced-rest-client/markdown-styles/commit/16f1649a719c9e27d9725387bc673bd2b29749e2) by Pawel Psztyc -* Update: Added mase mixin - [b77bb4b](https://github.com/advanced-rest-client/markdown-styles/commit/b77bb4bd9d2888b5bdf226f2bed0b9732d71ca1b) by Pawel Psztyc -* Update: Updated styles to match theming - [30bc317](https://github.com/advanced-rest-client/markdown-styles/commit/30bc3173be19f76e476ae6676b4fac35de49260d) by CI Agent -* Update: Updated styles definitions - [d22aa05](https://github.com/advanced-rest-client/markdown-styles/commit/d22aa05757133460dadfc1183da9e00fb673b039) by jarrodek -* Update: Added markdown rules - [151d530](https://github.com/advanced-rest-client/markdown-styles/commit/151d53029dd57fe74c901be00d52c309b4d8ab27) by jarrodek - - diff --git a/README.md b/README.md index 418bccf..a48e571 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/markdown-styles.svg)](https://www.npmjs.com/package/@advanced-rest-client/markdown-styles) - # Markdown styles set for API components The styles are applied to the element with `[slot="markdown-html"]` attribute. +[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/markdown-styles.svg)](https://www.npmjs.com/package/@advanced-rest-client/markdown-styles) + ## Usage ### Installation @@ -20,11 +20,14 @@ import markdownStyles from '@advanced-rest-client/markdown-styles/markdown-style class MarkdownImpl extends LitElement { static get styles() { - return css` - :host { - ... - } - ${markdownStyles} + return [ + css` + :host { + ... + }` + , + markdownStyles + ], } render() { @@ -38,6 +41,8 @@ class MarkdownImpl extends LitElement { ### In a Polymer 3 element +Note, Polymer styles are deprecated and will be removed. + ```js import {PolymerElement, html} from '@polymer/polymer'; import '@advanced-rest-client/markdown-styles/markdown-styles-polymer.js'; @@ -64,7 +69,3 @@ git clone https://github.com/advanced-rest-client/markdown-styles cd markdown-styles npm install ``` - -## API components - -This component is a part of [API components ecosystem](https://elements.advancedrestclient.com/) \ No newline at end of file diff --git a/polymer.json b/polymer.json deleted file mode 100644 index 6111e49..0000000 --- a/polymer.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "npm": true, - "lint": { - "rules": [ - "polymer-3" - ] - } -}