Skip to content

Commit a27643c

Browse files
committed
upgrade deps; update CI script
1 parent 1ad42e1 commit a27643c

File tree

3 files changed

+179
-180
lines changed

3 files changed

+179
-180
lines changed

.github/workflows/upload.yaml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,25 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

15-
- name: Get yarn cache
16-
id: yarn-cache
17-
run: echo "::set-output name=dir::$(yarn cache dir)"
18-
19-
- uses: actions/cache@v1
20-
name: Cache node modules of yarn
15+
- uses: actions/setup-node@v3
2116
with:
22-
path: ${{ steps.yarn-cache.outputs.dir }}
23-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
24-
restore-keys: |
25-
${{ runner.os }}-yarn-
17+
node-version: 16
18+
cache: yarn
19+
20+
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
21+
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
22+
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
2623

27-
- name: wget
28-
run: mkdir ci-bin/ && wget -O ci-bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.8/cr
29-
- name: "permission"
30-
run: chmod +x ci-bin/cr
24+
- name: add cr
25+
run: |
26+
mkdir -p $GITHUB_WORKSPACE/bin
27+
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.19/cr
28+
chmod +x $GITHUB_WORKSPACE/bin/cr
29+
echo "::add-path::$GITHUB_WORKSPACE/bin"
3130
3231
- name: "prepare modules"
3332
run: >
@@ -41,12 +40,12 @@ jobs:
4140
4241
- name: "compiles to js"
4342
run: >
44-
./ci-bin/cr --emit-js --once
43+
cr --emit-js --once
4544
&& yarn && yarn vite build --base=./
4645
4746
- name: Deploy to server
4847
id: deploy
49-
uses: Pendect/action-rsyncer@v1.1.0
48+
uses: Pendect/action-rsyncer@v2.0.0
5049
env:
5150
DEPLOY_KEY: ${{secrets.rsync_private_key}}
5251
with:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
3-
"@calcit/procs": "^0.6.8",
3+
"@calcit/procs": "^0.6.19",
44
"cirru-color": "^0.2.3"
55
},
66
"devDependencies": {
77
"bottom-tip": "^0.1.3",
8-
"vite": "^3.1.4"
8+
"vite": "^4.0.4"
99
},
1010
"version": "0.0.1"
1111
}

0 commit comments

Comments
 (0)