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

Commit 6839bf7

Browse files
committed
Merge branch 'stage'
2 parents 6f2b46b + 0a9d259 commit 6839bf7

17 files changed

+5096
-10779
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/deployment.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Tests and publishing
2+
env:
3+
FORCE_COLOR: 1
4+
on:
5+
push:
6+
pull_request:
7+
branches:
8+
- master
9+
- main
10+
jobs:
11+
test_linux:
12+
name: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-20.04]
17+
# os: [ubuntu-18.04, ubuntu-20.04]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
- uses: microsoft/playwright-github-action@v1
25+
- uses: actions/cache@v1
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: Run tests
34+
run: npm test
35+
test_win:
36+
name: "Windows"
37+
runs-on: windows-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-node@v1
41+
with:
42+
node-version: 14
43+
- uses: microsoft/playwright-github-action@v1
44+
- uses: actions/cache@v1
45+
with:
46+
path: ~/.npm
47+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
48+
restore-keys: |
49+
${{ runner.os }}-node-
50+
- name: Install dependencies
51+
run: npm ci
52+
- name: Run tests
53+
run: npm test
54+
tag:
55+
name: "Publishing release"
56+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
57+
needs:
58+
- test_linux
59+
- test_win
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Checkout code
63+
uses: actions/checkout@v2
64+
with:
65+
fetch-depth: 0
66+
- uses: actions/setup-node@v2
67+
with:
68+
node-version: '14.x'
69+
registry-url: 'https://registry.npmjs.org'
70+
- uses: actions/cache@v1
71+
with:
72+
path: ~/.npm
73+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
74+
restore-keys: |
75+
${{ runner.os }}-node-
76+
- run: npm install
77+
- name: Read version from package.json
78+
uses: culshaw/read-package-node-version-actions@v1
79+
id: package-node-version
80+
- name: Changelog
81+
uses: scottbrenner/generate-changelog-action@master
82+
id: Changelog
83+
- name: Github Release
84+
id: create_release
85+
uses: actions/create-release@latest
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
tag_name: v${{ steps.package-node-version.outputs.version }}
90+
body: |
91+
${{ steps.Changelog.outputs.changelog }}
92+
draft: false
93+
prerelease: false
94+
- run: npm publish --access public
95+
env:
96+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 89 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88

99
A mixin to be implemented to elements that needs to parse request / response body.
1010

11+
> This component is no longer developed. Please, do not use it.
12+
1113
## Usage
1214

1315
### Installation
14-
```
16+
17+
```sh
1518
npm install --save @advanced-rest-client/payload-parser-mixin
1619
```
1720

commitlint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

gen-tsd.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)