Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
chore: updating deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
  • Loading branch information
jarrodek committed Mar 7, 2021
1 parent 58c8f92 commit e69db71
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 261 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

240 changes: 0 additions & 240 deletions CHANGELOG.md

This file was deleted.

23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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() {
Expand All @@ -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';
Expand All @@ -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/)
8 changes: 0 additions & 8 deletions polymer.json

This file was deleted.

0 comments on commit e69db71

Please sign in to comment.