File tree Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to GPR
2
+ on :
3
+ release :
4
+ types : ["created"]
5
+ jobs :
6
+ build :
7
+ runs-on : " ubuntu-latest"
8
+ timeout-minutes : 10
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ node-version : [13.x]
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - name : Use Node.js ${{ matrix.node-version }}
16
+ uses : actions/setup-node@v1
17
+ with :
18
+ node-version : ${{ matrix.node-version }}
19
+ - name : Install Dependencies
20
+ run : yarn install
21
+ - name : Build
22
+ run : yarn run build
23
+ publish-gpr :
24
+ runs-on : " ubuntu-latest"
25
+ needs : ["build"]
26
+ steps :
27
+ - uses : actions/checkout@v1
28
+ - name : Use Node.js ${{ matrix.node-version }}
29
+ uses : actions/setup-node@v1
30
+ with :
31
+ node-version : ${{ matrix.node-version }}
32
+ registry-url : https://npm.pkg.github.com
33
+ scope : " @kipr"
34
+ - name : Publish to GPR
35
+ run : yarn publish
36
+ env :
37
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ .git
3
+ .gitignore
Original file line number Diff line number Diff line change
1
+ @kipr:registry = https://npm.pkg.github.com
Original file line number Diff line number Diff line change 6
6
"author" : " KISS Institute for Practical Robotics" ,
7
7
"license" : " GPLv3" ,
8
8
"private" : false ,
9
+ "publishConfig" : {
10
+ "registry" : " https://npm.pkg.github.com"
11
+ },
9
12
"scripts" : {
10
- "build" : " tsc" ,
11
- "install" : " yarn run build"
13
+ "build" : " tsc"
12
14
},
13
- "peerDependencies " : {
15
+ "devDependencies " : {
14
16
"typescript" : " ^4.8.4"
15
17
}
16
18
}
You can’t perform that action at this time.
0 commit comments