-
Notifications
You must be signed in to change notification settings - Fork 361
59 lines (51 loc) · 1.46 KB
/
npm.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
name: Test NPM Installer
on:
pull_request:
branches:
- main
paths:
- "dist/npm/**"
- ".github/workflows/npm.yaml"
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
export RELEASE_VERSION=$(node index.js get-latest)
npm run prepare
devspace --version
npm uninstall -g devspace
npx -p . devspace --version
export PATH=$PATH:$(yarn global bin)
yarn global add $PWD
devspace --version
yarn global remove devspace
working-directory: ./dist/npm
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: |
npm install -g
$releaseVersion = node index.js get-latest
$env:RELEASE_VERSION = $releaseVersion
npm run prepare
devspace --version
npm uninstall -g devspace
npx -p . devspace --version
$yarnGlobalDir = yarn global bin
$env:Path += ";$yarnGlobalDir"
yarn global add $PWD
devspace --version
yarn global remove devspace
working-directory: ./dist/npm