File tree Expand file tree Collapse file tree 4 files changed +51
-8
lines changed
Expand file tree Collapse file tree 4 files changed +51
-8
lines changed Original file line number Diff line number Diff line change 1+ name : CD
2+
3+ on :
4+ release :
5+ types : [released]
6+
7+ permissions :
8+ contents : read
9+ id-token : write # Required to authenticate with npm
10+
11+ jobs :
12+ docs :
13+ uses : ./.github/workflows/docs.yml
14+ secrets : inherit
15+ with :
16+ deploy : true
17+
18+ publish :
19+ environment : npm
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v5
23+ - uses : actions/setup-node@v6
24+ with :
25+ node-version : lts
26+ registry-url : " https://registry.npmjs.org"
27+ - run : npm ci
28+ - run : npm run build
29+ - run : npm publish
Original file line number Diff line number Diff line change 11name : Docs Deployment
22
33on :
4- pull_request :
5- push :
6- branches :
7- - develop
8- release :
9- types : [released]
104 workflow_dispatch :
5+ inputs :
6+ deploy :
7+ description : " Deploy to GitHub Pages"
8+ required : true
9+ type : boolean
10+ default : false
11+
12+ workflow_call :
13+ inputs :
14+ deploy :
15+ description : " Deploy to GitHub Pages"
16+ required : true
17+ type : boolean
18+ default : false
1119
1220jobs :
1321 build :
3947 # pages and id-token required to deploy to GitHub Pages
4048 pages : write
4149 id-token : write
42- if : github.event_name == 'release' || github.event_name == 'workflow_dispatch'
50+ if : inputs.deploy
4351 steps :
4452 - name : Deploy to GitHub Pages
4553 id : deployment
Original file line number Diff line number Diff line change 4141
4242 - name : Run tests
4343 run : npm test
44+
45+ docs :
46+ uses : ./.github/workflows/docs.yml
47+ secrets : inherit
48+ with :
49+ deploy : false
Original file line number Diff line number Diff line change 22 "name" : " roslib" ,
33 "homepage" : " https://robotwebtools.github.io" ,
44 "description" : " The standard ROS Javascript Library" ,
5- "version" : " 2.0.0" ,
5+ "version" : " 2.0.0-alpha1 " ,
66 "license" : " BSD-2-Clause" ,
77 "files" : [
88 " dist"
You can’t perform that action at this time.
0 commit comments