mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-20 06:50:47 -07:00
chore: migrate actions/upload-artifact to v4
This commit is contained in:
@@ -28,13 +28,13 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-${{ inputs.os }}
|
name: dist-${{ inputs.os }}
|
||||||
path: dist
|
path: dist
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs-${{ inputs.os }}
|
||||||
path: ~/.npm/_logs
|
path: ~/.npm/_logs
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: docs/public
|
folder: docs/public
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-${{ inputs.os }}
|
name: dist-${{ inputs.os }}
|
||||||
path: dist
|
path: dist
|
||||||
- name: Check Performance
|
- name: Check Performance
|
||||||
run: npm run perf:diff
|
run: npm run perf:diff
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
npx semantic-release --dry-run
|
npx semantic-release --dry-run
|
||||||
fi
|
fi
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: npm-logs
|
||||||
|
|||||||
@@ -34,17 +34,17 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-${{ matrix.os }}
|
name: dist-${{ matrix.os }}
|
||||||
path: dist
|
path: dist
|
||||||
- name: Run Test
|
- name: Run Test
|
||||||
run: TZ=${{ matrix.timezone }} npm test
|
run: TZ=${{ matrix.timezone }} npm test
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: test-npm-logs-${{ matrix.os }}-${{ matrix.timezone }}-${{ matrix.node-version }}
|
||||||
path: ~/.npm/_logs
|
path: ~/.npm/_logs
|
||||||
demo:
|
demo:
|
||||||
name: Demo Check
|
name: Demo Check
|
||||||
@@ -59,15 +59,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-ubuntu-latest
|
name: dist-ubuntu-latest
|
||||||
path: dist
|
path: dist
|
||||||
- name: Run Demo Test
|
- name: Run Demo Test
|
||||||
run: npm run test:demo
|
run: npm run test:demo
|
||||||
- name: Archive npm failure logs
|
- name: Archive npm failure logs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: npm-logs
|
name: demo-npm-logs
|
||||||
path: ~/.npm/_logs
|
path: ~/.npm/_logs
|
||||||
|
|||||||
Reference in New Issue
Block a user