-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.06 KB
/
run.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: Run script
on:
workflow_dispatch: {}
schedule:
- cron: "0 0 * * *"
jobs:
build:
name: Run script
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checking out Repository
uses: actions/checkout@master
- name: Setting up node.js
uses: actions/[email protected]
with:
node-version: '18.12.0'
- name: Setting up pnpm
uses: pnpm/action-setup@v2
with:
version: 7.14.1
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Installing dependencies
run: pnpm install
- name: Run script
run: pnpm run start