Skip to content

Commit a87c17d

Browse files
v6.5.2 (#705)
* 6.5.3 * build: change package name back to api-console * build: delete valkr.yaml and Jenkinsfile * build: add deployment.yml & update README.md * chore(deps): upgrade amf-helper-mixin * 6.5.2 * build: change npm install to ci in GH action * build: unify ubuntu and windows tests step * build: fix os for test job * build: remove test_win from needs * build: clean up deployment.yml * build: test_linunx -> tests * build: add support branches, test job conditions * build: testing * build: ignore publish if pull request
1 parent 7d31621 commit a87c17d

File tree

7 files changed

+99
-70
lines changed

7 files changed

+99
-70
lines changed

.github/workflows/deployment.yml

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

.github/workflows/tests.yml

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

Jenkinsfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
MuleSoft's API Console is an enterprise grade API Documentation tool.
44
This is an open source version of the console used in Anypoint Platform.
55

6+
[![Published on NPM](https://img.shields.io/npm/v/api-console.svg)](https://www.npmjs.com/package/api-console)
7+
8+
[![Tests and publishing](https://github.com/mulesoft/api-console/actions/workflows/deployment.yml/badge.svg)](https://github.com/mulesoft/api-console/actions/workflows/deployment.yml)
9+
610
## Usage
711

812
For best developer experience use one of our tools to use the console in your project depending on your use case:

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@mulesoft/api-console",
2+
"name": "api-console",
33
"description": "The API Console to automatically generate API documentation from RAML and OAS files.",
4-
"version": "0.0.0-valkyr",
4+
"version": "6.5.2",
55
"license": "CPAL-1.0",
66
"main": "index.js",
77
"module": "index.js",
@@ -36,7 +36,7 @@
3636
"@advanced-rest-client/arc-icons": "^3.2.2",
3737
"@advanced-rest-client/oauth-authorization": "^5.0.4",
3838
"@anypoint-web-components/anypoint-button": "^1.1.1",
39-
"@api-components/amf-helper-mixin": "^4.4.0",
39+
"@api-components/amf-helper-mixin": "^4.4.1",
4040
"@api-components/api-console-ext-comm": "^3.0.0",
4141
"@api-components/api-documentation": "^6.0.3",
4242
"@api-components/api-navigation": "^4.3.0",

valkyr.yaml

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

0 commit comments

Comments
 (0)