Реализовал кеширование пакетов NPM при автоматической сборке
Some checks failed
/ test (push) Has been cancelled
Some checks failed
/ test (push) Has been cancelled
This commit is contained in:
parent
0788c25676
commit
f132b37f8c
1 changed files with 15 additions and 0 deletions
|
@ -14,9 +14,24 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore the NPM cache
|
||||
id: tsru-npm
|
||||
uses: https://data.forgejo.org/actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
key: node_modules
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i --include=dev
|
||||
|
||||
- name: Preserve the NPM packages
|
||||
uses: https://data.forgejo.org/actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
./node_modules
|
||||
key: ${{ steps.tsru-npm.outputs.cache-primary-key }}
|
||||
|
||||
- name: Populate the .env file
|
||||
run: echo PUBLIC_TS_DISCORD=${{ env.PUBLIC_TS_DISCORD }} >> .env
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue