Skip to content

Commit a78384a

Browse files
committedDec 17, 2024·
Fix build and deployment of yml2vocab and Github pages.
1 parent c961eae commit a78384a

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed
 

‎.github/workflows/gh-pages.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,23 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout/@v3
28-
- name: Setup Node 18
29-
uses: actions/setup-node@v3
27+
uses: actions/checkout/@v4
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
3030
with:
31-
node-version: 18
31+
node-version: 22
3232
- name: Generate VC vocabularies
3333
run: |
34-
npm install yml2vocab
35-
npm update yml2vocab
34+
npm install
3635
./node_modules/.bin/yml2vocab -v vocab/credentials/v2/vocabulary.yml -t vocab/credentials/v2/template.html
3736
rm -rf node_modules
3837
- name: Setup Github Pages
39-
uses: actions/configure-pages@v2
38+
uses: actions/configure-pages@v5
4039
- name: Upload artifact
41-
uses: actions/upload-pages-artifact@v1
40+
uses: actions/upload-pages-artifact@v3
4241
with:
4342
# Upload entire repository
4443
path: '.'
4544
- name: Deploy to GitHub Pages
4645
id: deployment
47-
uses: actions/deploy-pages@v1
46+
uses: actions/deploy-pages@v4

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"assert": "^2.0.0",
2121
"fs": "^0.0.1-security",
2222
"mocha": "^10.4.0",
23-
"yml2vocab": "^1.4.0"
23+
"yml2vocab": "^1.4.9"
2424
},
2525
"scripts": {
2626
"test-schema": "mocha 'schema/**/*.js'"

0 commit comments

Comments
 (0)
Please sign in to comment.