-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (35 loc) · 1.01 KB
/
pr.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
48
name: CI
on:
pull_request:
branches: [main, beta]
types: [opened, synchronize]
jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/quickstart
- run: |
type pnpm
type npm
echo $PATH
echo $GITHUB_PATH
cat $HOME/.bash_profile
cat $HOME/.bashrc
mkdir -p $GITHUB_WORKSPACE/kdnj/bin
echo -e '#!/bin/bash\npnpm "$@"' > $GITHUB_WORKSPACE/kdnj/bin/npm && \
chmod +x $GITHUB_WORKSPACE/kdnj/bin/npm
echo "$GITHUB_WORKSPACE/kdnj/bin" >> $GITHUB_PATH
echo REAL_PATH $PATH
echo GITHUB_PATH $GITHUB_PATH
type pnpm
type npm
rc=/tmp/rcfile
echo 'shopt -s expand_aliases' > $rc
echo 'alias ll="ls -l" ' >> $rc
echo 'alias npm="$GITHUB_WORKSPACE/kdnj/bin/npm"' >> $rc
source $rc
type pnpm
type npm
npm version
npm --help