Skip to content

Commit 16c5ee2

Browse files
committed
update CI script
1 parent 721bd96 commit 16c5ee2

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-node@v3
1314
with:
14-
node-version: 12
15+
node-version: 18
16+
cache: "yarn"
1517
registry-url: https://registry.npmjs.org/
1618

1719
- run: yarn && yarn tsc && npm publish

.github/workflows/upload.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,20 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v3
1515

16-
- name: Get yarn cache
17-
id: yarn-cache
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: 'yarn'
1920

2021
- name: "compiles to js"
2122
run: >
2223
yarn && yarn tsc && yarn vite build --base=./
2324
2425
- name: Deploy to server
2526
id: deploy
26-
uses: Pendect/action-rsyncer@v1.1.0
27+
uses: Pendect/action-rsyncer@v2.0.0
2728
env:
2829
DEPLOY_KEY: ${{secrets.rsync_private_key}}
2930
with:

0 commit comments

Comments
 (0)