From a78384a16fe9d6ac33e4fc2adfa2a44aa309fe74 Mon Sep 17 00:00:00 2001 From: Manu Sporny Date: Tue, 17 Dec 2024 11:18:32 -0500 Subject: [PATCH] Fix build and deployment of yml2vocab and Github pages. --- .github/workflows/gh-pages.yml | 17 ++++++++--------- package.json | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d4a0c055b..f52714f39 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -24,24 +24,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout/@v3 - - name: Setup Node 18 - uses: actions/setup-node@v3 + uses: actions/checkout/@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: Generate VC vocabularies run: | - npm install yml2vocab - npm update yml2vocab + npm install ./node_modules/.bin/yml2vocab -v vocab/credentials/v2/vocabulary.yml -t vocab/credentials/v2/template.html rm -rf node_modules - name: Setup Github Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/package.json b/package.json index 318f05957..9d101b274 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "assert": "^2.0.0", "fs": "^0.0.1-security", "mocha": "^10.4.0", - "yml2vocab": "^1.4.0" + "yml2vocab": "^1.4.9" }, "scripts": { "test-schema": "mocha 'schema/**/*.js'"