Skip to content

Commit 78925c4

Browse files
Merge pull request #5 from netresearch/development
Split documentation workflow again
2 parents 277bcd8 + 755cf07 commit 78925c4

File tree

4 files changed

+34
-16
lines changed

4 files changed

+34
-16
lines changed

.github/workflows/docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 📖 Documentation
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
release:
10+
name: 📦☁️ Release
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
19+
- name: ⚡ Install dependencies
20+
run: yarn install --frozen-lockfile
21+
22+
- name: 🔨 Build documentation
23+
run: yarn build:docs
24+
25+
- name: ☁️ Publish documentation
26+
uses: tsunematsu21/[email protected]
27+
with:
28+
dir: docs
29+
branch: gh-pages
30+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.when-pushed.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030

3131
- uses: actions/setup-node@v1
3232
with:
33+
node-version: '12.x'
3334
registry-url: 'https://npm.pkg.github.com'
3435
scope: '@netresearch'
3536

@@ -70,10 +71,3 @@ jobs:
7071
asset_path: ./package.tgz
7172
asset_name: package.tgz
7273
asset_content_type: application/tgz
73-
74-
- name: ☁️ Publish documentation
75-
uses: tsunematsu21/[email protected]
76-
with:
77-
dir: docs
78-
branch: gh-pages
79-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.when-tagged.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131

3232
- uses: actions/setup-node@v1
3333
with:
34+
node-version: '12.x'
3435
registry-url: 'https://npm.pkg.github.com'
3536
scope: '@netresearch'
3637

@@ -64,10 +65,3 @@ jobs:
6465
asset_path: ./package.tgz
6566
asset_name: package.tgz
6667
asset_content_type: application/tgz
67-
68-
- name: ☁️ Publish documentation
69-
uses: tsunematsu21/[email protected]
70-
with:
71-
dir: docs
72-
branch: gh-pages
73-
token: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netresearch/node-magento-eqp",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Simple API wrapper around the Magento Marketplace EQP API",
55
"main": "dist/index.js",
66
"repository": {
@@ -15,7 +15,7 @@
1515
"build:lib:dev": "tsc -w",
1616
"build:docs": "typedoc --out docs --theme ./node_modules/typedoc-default-themes-dark/bin/default src/index.ts",
1717
"lint": "eslint src --ext .ts",
18-
"prepack": "yarn build"
18+
"prepack": "yarn build:lib"
1919
},
2020
"devDependencies": {
2121
"@types/node": "8",

0 commit comments

Comments
 (0)