Skip to content

Commit

Permalink
Merge pull request #1270 from ml5js/joeyklee.devops-publish-workflow
Browse files Browse the repository at this point in the history
devops: testing - publish.yml workflow
  • Loading branch information
joeyklee authored Jan 21, 2022
2 parents 9c4bc56 + f795dcc commit 767665f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1,762 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "12"
node-version: "12.16.1"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build --if-present
- run: npm publish
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ Before getting started with ml5.js, review our [Code of Conduct](https://github.




<p id="latest-version">

* You can use the latest version (0.8.1) by adding it to the head section of your HTML document:
* You can use the latest version (0.8.6) by adding it to the head section of your HTML document:

**v0.8.1**
**v0.8.6**

<script src="https://unpkg.com/[email protected].1/dist/ml5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/[email protected].6/dist/ml5.min.js" type="text/javascript"></script>

</p data-id="latest-version">

Expand All @@ -54,6 +55,7 @@ Before getting started with ml5.js, review our [Code of Conduct](https://github.







Expand Down
Loading

0 comments on commit 767665f

Please sign in to comment.