Update ci.yml use node 22

This commit is contained in:
Anduin Xue
2025-04-16 05:40:40 +00:00
committed by GitHub
parent d34d033c0a
commit 66ea5bb977

View File

@@ -14,7 +14,7 @@ jobs:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '16' node-version: '22'
cache: 'npm' cache: 'npm'
- run: npm install - run: npm install
- run: npm run build - run: npm run build
@@ -46,4 +46,4 @@ jobs:
- name: Build and push the Docker image - name: Build and push the Docker image
run: | run: |
docker build . --tag ghcr.io/anduin2017/how-to-cook:latest docker build . --tag ghcr.io/anduin2017/how-to-cook:latest
docker push ghcr.io/anduin2017/how-to-cook:latest docker push ghcr.io/anduin2017/how-to-cook:latest