-
Notifications
You must be signed in to change notification settings - Fork 428
Expand file tree
/
Copy pathcorepack.yaml
More file actions
69 lines (59 loc) · 1.79 KB
/
corepack.yaml
File metadata and controls
69 lines (59 loc) · 1.79 KB
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
60
61
62
63
64
65
66
67
68
69
package:
name: corepack
version: "0.34.7"
epoch: 0
description: Zero-runtime-dependency package acting as bridge between Node projects and their package managers
copyright:
- license: MIT
dependencies:
runtime:
- nodejs
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- nodejs
- npm
- python3
- yarn-berry
pipeline:
- uses: git-checkout
with:
repository: https://github.com/nodejs/corepack/
tag: v${{package.version}}
expected-commit: fbe7f788a1d9d9ae2c60a39b80f00af1ccf9a7c0
- name: build
runs: |
yarn install
yarn build
- name: install
runs: |
mkdir -p ${{targets.destdir}}/usr/share/node_modules/corepack
# Copy the built directory into the destination directory.
cp ./dist ${{targets.destdir}}/usr/share/node_modules/corepack/dist -r
cp ./shims ${{targets.destdir}}/usr/share/node_modules/corepack/shims -r
cp package.json ${{targets.destdir}}/usr/share/node_modules/corepack/package.json
# Remove windows specific files.
rm ${{targets.destdir}}/usr/share/node_modules/corepack/shims/*.cmd
rm ${{targets.destdir}}/usr/share/node_modules/corepack/shims/*.ps1
rm -rf ${{targets.destdir}}/usr/share/node_modules/corepack/shims/nodewin
# Create a symlink for corepack in /usr/bin.
mkdir -p ${{targets.destdir}}/usr/bin
ln -sf /usr/share/node_modules/corepack/dist/corepack.js ${{targets.destdir}}/usr/bin/corepack
- uses: strip
update:
enabled: true
github:
identifier: nodejs/corepack
strip-prefix: v
test:
pipeline:
- uses: test/tw/ver-check
with:
bins: corepack
version: ${{package.version}}
- runs: |
corepack --help
corepack enable