Skip to content

Commit ea04964

Browse files
updated workflows
1 parent 444d587 commit ea04964

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Generate docs and push to another branch
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
release:
5+
types: [published]
76

87
jobs:
98
build:

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish to npm
22

3-
on: push
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
publish:
@@ -18,4 +20,3 @@ jobs:
1820
- uses: JS-DevTools/npm-publish@v1
1921
with:
2022
token: ${{ secrets.NPM_TOKEN }}
21-
access: public

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "tagged-release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
tagged-release:
10+
name: "Tagged Release"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- name: git-checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install all dependencies
18+
run: npm install
19+
20+
- name: Test
21+
run: npm test
22+
23+
- uses: "marvinpinto/action-automatic-releases@latest"
24+
with:
25+
repo_token: "${{ secrets.PAT_TOKEN }}"
26+
prerelease: false

0 commit comments

Comments
 (0)