-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.57 KB
/
StandardPublish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name : publish
on : [ push ]
jobs :
Full :
env :
PRIVATE_WTOOLS_BOT_TOKEN : ${{ secrets.PRIVATE_WTOOLS_BOT_TOKEN }}
PRIVATE_WTOOLS_BOT_SSH_KEY : ${{ secrets.PRIVATE_WTOOLS_BOT_SSH_KEY }}
PRIVATE_WTOOLS_BOT_NPM_PASS : ${{ secrets.PRIVATE_WTOOLS_BOT_NPM_PASS }}
PRIVATE_WTOOLS_BOT_EMAIL : ${{ secrets.PRIVATE_WTOOLS_BOT_EMAIL }}
NODE_PRE_GYP_GITHUB_TOKEN : ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}
strategy :
fail-fast : false
matrix :
os : [ ubuntu-latest, windows-latest, macos-latest ]
node-version : [ 10.x, 12.9.1, 13.x, 14.x, 15.x ]
if : "startsWith( github.event.head_commit.message, 'version' ) && startsWith( github.ref, 'refs/tags/v' )"
runs-on : ${{ matrix.os }}
steps :
- name : Setup git
run : |
git config --global core.autocrlf input
git config --global user.email "testing@testing.com"
git config --global user.name "Testing"
- uses : actions/checkout@v2
with :
fetch-depth: 2
- name : ${{ matrix.node-version }}
uses : actions/setup-node@v1
with :
node-version : ${{ matrix.node-version }}
- name : Save npm version
id : getnpmver
run : |
echo "::set-output name=npmver::$(npm -v)"
- name : Update npm if current version is 6
if : "startsWith( steps.getnpmver.outputs.npmver, '6.' )"
run : npm install -g npm@latest-6
- run : npm -g i willbe@delta
- run : will .npm.install
- name : Environment
run : env
- run : npm list
continue-on-error : true
- run : npm test