Skip to content

Commit

Permalink
Merge pull request #1273 from ml5js/joeyklee.devops-publish-workflow
Browse files Browse the repository at this point in the history
chore: bump pkg - debugging
  • Loading branch information
joeyklee authored Jan 21, 2022
2 parents f1d0413 + a173e16 commit 0377321
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 18 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/debugging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ on:
- joeyklee.devops-publish-workflow

jobs:
publish-npm:
debugging:
runs-on: ubuntu-latest
steps:
- 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 ci
- run: echo "passed npm ci"
- run: npm i
- run: echo "passed npm i"
- run: npm run build
- run: echo "passed build"
24 changes: 15 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
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}}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ 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.8) by adding it to the head section of your HTML document:
* You can use the latest version (0.8.9) by adding it to the head section of your HTML document:

**v0.8.8**
**v0.8.9**

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

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

Expand All @@ -60,6 +61,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.8",
"version": "0.8.9",
"description": "A friendly machine learning library for the web.",
"main": "dist/ml5.min.js",
"directories": {
Expand Down

0 comments on commit 0377321

Please sign in to comment.