This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +34
-101
lines changed Expand file tree Collapse file tree 4 files changed +34
-101
lines changed Original file line number Diff line number Diff line change 3
3
on :
4
4
push :
5
5
branches : [ master ]
6
- # run when tag received matching version format
6
+ tags :
7
+ - v*.*.*
7
8
pull_request :
8
9
branches : [ master ]
9
10
90
91
ls prebuilds/
91
92
name: List prebuilds
92
93
93
- # only if tag found for release
94
- # - if defined APPVEYOR_REPO_TAG_NAME (npm run upload)
94
+ - name : Upload prebuilds to GitHub
95
+ run : npm run upload
96
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
97
+ env :
98
+ GITHUB_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
99
+
100
+ # Separate step for publishing to NPM so we're sure that generating + uploading prebuilds worked on all platforms
101
+ npm-publish :
102
+ needs : build
103
+ name : Publish to NPM
104
+ runs-on : ubuntu-20.04
105
+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
106
+
107
+ steps :
108
+ - uses : actions/checkout@v2
109
+ - name : Use Node.js 15
110
+ uses : actions/setup-node@v1
111
+ with :
112
+ node-version : 15.x
113
+ registry-url : ' https://registry.npmjs.org'
114
+
115
+ - run : sudo apt-get install libsecret-1-dev
116
+ name : Install additional dependencies
117
+
118
+ - run : npm install
119
+ name : Setup environment
120
+
121
+ - run : npm publish --access public
122
+ name : Upload to NPM
123
+ env :
124
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 40
40
"prebuild-electron" : " prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -r electron --strip" ,
41
41
"prebuild-electron-arm64" : " prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -r electron -a arm64 --strip" ,
42
42
"prebuild-electron-ia32" : " prebuild -t 7.0.0 -t 8.0.0 -t 9.0.0 -t 10.0.0 -t 11.0.0 -r electron -a ia32 --strip" ,
43
- "upload" : " node ./script/upload.js" ,
44
- "postpublish" : " git push --follow-tags"
43
+ "upload" : " node ./script/upload.js"
45
44
},
46
45
"devDependencies" : {
47
46
"babel-core" : " ^6.26.3" ,
You can’t perform that action at this time.
0 commit comments