Skip to content

Commit ba25f55

Browse files
updated workflow
1 parent d786e98 commit ba25f55

File tree

6 files changed

+44
-61
lines changed

6 files changed

+44
-61
lines changed

.github/workflows/docs.yml

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

.github/workflows/publish.yml

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

.github/workflows/release.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
1-
name: "tagged-release"
1+
name: "release"
22

33
on:
44
push:
55
tags:
66
- "v*"
77

88
jobs:
9-
tagged-release:
10-
name: "Tagged Release"
9+
release:
10+
name: "Release"
1111
runs-on: "ubuntu-latest"
1212

1313
steps:
1414
- name: git-checkout
1515
uses: actions/checkout@v2
1616

17-
- name: Install all dependencies
18-
run: npm install
17+
- name: npm ci
18+
run: npm ci
1919

20-
- name: Test
20+
- name: npm test
2121
run: npm test
2222

23-
- uses: "marvinpinto/action-automatic-releases@latest"
23+
- name: Automatic release
24+
uses: "marvinpinto/action-automatic-releases@latest"
2425
with:
2526
repo_token: "${{ secrets.PAT_TOKEN }}"
2627
prerelease: false
28+
29+
- name: Generate documentation
30+
run: npm run generate-docs
31+
32+
- name: Push documentation
33+
uses: s0/git-publish-subdir-action@develop
34+
env:
35+
REPO: self
36+
BRANCH: gh-pages
37+
FOLDER: docs
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Publish to npm
41+
uses: JS-DevTools/npm-publish@v1
42+
with:
43+
token: ${{ secrets.NPM_TOKEN }}
44+
access: public

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "test"
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
name: "Unit tests"
8+
runs-on: "ubuntu-latest"
9+
10+
steps:
11+
- name: git-checkout
12+
uses: actions/checkout@v2
13+
14+
- name: npm ci
15+
run: npm ci
16+
17+
- name: npm test
18+
run: npm test

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bbcode-parser [![Build Status](https://travis-ci.com/thoughtsunificator/bbcode-parser.svg?branch=master)](https://travis-ci.com/thoughtsunificator/bbcode-parser)
1+
# bbcode-parser
22

33
bbcode-parser is a JavaScript implementation of the lightweight markup language [BBCode](https://en.wikipedia.org/wiki/BBCode).
44

0 commit comments

Comments
 (0)