use cache
This commit is contained in:
1 parent
9f8e43776f
commit
22d4fe40bc
1 file changed
+2
-10
@@ -11,18 +11,11 @@ jobs:
|
||||
container:
|
||||
image: gitea.psi.ch/images/rhel9-developer-gitea-actions
|
||||
steps:
|
||||
# # This sets the Node.js version for the rest of the job
|
||||
# - name: Setup Node.js
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# node-version: "20" # <--- Set your version here
|
||||
# cache: "npm"
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20" # Specify your target version (e.g., 18, 20, 22, or 'lts/*')
|
||||
# cache: 'npm' # Optional: Cache dependencies for faster builds
|
||||
cache: "npm" # Optional: Cache dependencies for faster builds
|
||||
|
||||
- name: Check
|
||||
run: |
|
||||
@@ -67,9 +60,8 @@ jobs:
|
||||
|
||||
- name: Create and upload release
|
||||
uses: actions/gitea-release-action@v1
|
||||
env:
|
||||
NODE_OPTIONS: "--experimental-fetch" # if nodejs < 18
|
||||
with:
|
||||
name: ${{ steps.check_release.outputs.latest_tag }}
|
||||
tag_name: ${{ steps.check_release.outputs.latest_tag }}
|
||||
release_name: ${{ steps.check_release.outputs.latest_tag }}
|
||||
body: "Release of version ${{ steps.check_release.outputs.latest_tag }} published on ${{ steps.check_release.outputs.publish_date }}"
|
||||
|
||||
Reference in new issue
Block a user