forked from UTS-eResearch/ro-crate-js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
577 additions
and
704 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Run Tests] | ||
types: [completed] | ||
branches: [master, main] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: ButlerLogic/[email protected] | ||
with: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
tag_prefix: "v" | ||
id: create_tag | ||
# - run: echo ${{ steps.create_tag.outputs.tagname }} | ||
# - run: echo ${{ steps.create_tag.outputs.version }} | ||
- name: Check if a new tag is created | ||
run: "[[ '${{ steps.create_tag.outputs.tagname }}' ]]" | ||
- name: get major-minor version | ||
id: docver | ||
run: echo "DOCVER=${TAGNAME%.*}" >> $GITHUB_ENV | ||
env: | ||
TAGNAME: ${{ steps.create_tag.outputs.tagname }} | ||
- run: npm ci | ||
- run: npm run build-docs | ||
- name: Deploy docs to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs | ||
target-folder: docs/${{ env.DOCVER }} | ||
single-commit: true | ||
- name: Publish package on NPM | ||
run: npm publish --access public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16, 18] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci && npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,5 +64,5 @@ typings/ | |
.idea | ||
.vscode | ||
|
||
# JSDoc generated documentation | ||
# generated api documentation | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
const {ROCrate} = require('./lib/rocrate.js'); | ||
const {Checker} = require('./lib/checker.js'); | ||
const {Utils} = require('./lib/utils.js'); | ||
const Defaults = require('./lib/defaults.js'); | ||
/** | ||
* @exports ROCrate/RawEntity | ||
*/ | ||
module.exports = { | ||
ROCrate: require('./lib/rocrate.js'), | ||
Checker: require('./lib/checker.js'), | ||
Utils: require('./lib/utils.js'), | ||
Defaults: require('./lib/defaults.js') | ||
} | ||
ROCrate, | ||
Checker, | ||
Utils, | ||
Defaults, | ||
}; | ||
|
||
// module.exports = { | ||
// ROCrate: require('./lib/rocrate.js'), | ||
// Checker: require('./lib/checker.js'), | ||
// Utils: require('./lib/utils.js'), | ||
// Defaults: require('./lib/defaults.js') | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './index.js'; | ||
import {ROCrate} from './index.js'; | ||
export default ROCrate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from './lib/types'; | ||
export {ROCrate} from './lib/rocrate'; | ||
export {Checker, CheckItem} from './lib/checker'; | ||
export {Utils} from './lib/utils'; | ||
//export * as Defaults from './lib/defaults'; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.