Skip to content

Commit

Permalink
Fix build and deployment of yml2vocab and Github pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Dec 17, 2024
1 parent c961eae commit a78384a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit a78384a

Please sign in to comment.