Commit 5e423af 1 parent 92f155c commit 5e423af Copy full SHA for 5e423af
File tree 3 files changed +42
-5
lines changed
3 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Node.js CI
1
+ name : Build
2
2
3
3
on :
4
4
push :
17
17
steps :
18
18
- name : Checkout code
19
19
uses : actions/checkout@v4
20
-
20
+
21
21
- name : Use Node.js 20.x
22
22
uses : actions/setup-node@v4
23
23
with :
Original file line number Diff line number Diff line change
1
+ name : Publish to npm
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v[0-9]+.[0-9]+.[0-9]+*'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 10
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Use Node.js 20.x
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 20.x
20
+ cache : ' npm'
21
+
22
+ - name : Install dependencies
23
+ uses : borales/actions-yarn@v5
24
+ with :
25
+ cmd : install --immutable
26
+
27
+ - name : Prepare
28
+ uses : borales/actions-yarn@v5
29
+ with :
30
+ cmd : prepare
31
+
32
+ - name : Pack
33
+ uses : borales/actions-yarn@v5
34
+ with :
35
+ cmd : npm publish --access public
36
+ env :
37
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# Simple workflow for deploying static content to GitHub Pages
2
- name : Deploy static content to Pages
2
+ name : Deploy docs to Pages
3
3
4
4
on :
5
5
# Runs on pushes targeting the default branch
@@ -50,13 +50,13 @@ jobs:
50
50
51
51
- name : Setup Pages
52
52
uses : actions/configure-pages@v4
53
-
53
+
54
54
- name : Upload artifact
55
55
uses : actions/upload-pages-artifact@v3
56
56
with :
57
57
# Upload entire repository
58
58
path : ' ./docs'
59
-
59
+
60
60
- name : Deploy to GitHub Pages
61
61
id : deployment
62
62
uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments