Skip to content

Commit

Permalink
Merge pull request #1274 from ml5js/joeyklee.devops-publish-workflow
Browse files Browse the repository at this point in the history
Joeyklee.devops publish workflow
  • Loading branch information
joeyklee authored Jan 21, 2022
2 parents 0377321 + 6fa1cf5 commit 74bc93b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ 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.9) by adding it to the head section of your HTML document:
* You can use the latest version (0.8.10) by adding it to the head section of your HTML document:

**v0.8.9**
**v0.8.10**

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

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

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







Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ml5",
"version": "0.8.9",
"version": "0.8.10",
"description": "A friendly machine learning library for the web.",
"main": "dist/ml5.min.js",
"directories": {
Expand Down

0 comments on commit 74bc93b

Please sign in to comment.