Skip to content

Commit c40d6cc

Browse files
authored
Merge pull request #1289 from ml5js/joeyklee.devops-publish-workflow
chore: testing automation
2 parents 8799f57 + 7aa3db1 commit c40d6cc

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed

.github/workflows/debugging.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ jobs:
2020
with:
2121
node-version: "12.x"
2222
registry-url: https://registry.npmjs.org/
23-
- uses: release-drafter/release-drafter@v5
24-
id: release_drafter
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
# - uses: release-drafter/release-drafter@v5
24+
# id: release_drafter
25+
# env:
26+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: pozetroninc/github-action-get-latest-release@master
28+
id: latest_release
29+
with:
30+
repository: ${{ github.repository }}
31+
- run: echo "bumping package to ${{ steps.latest_release.outputs.release }}"
2732
# bump the package version
28-
- run: echo "name ${{ steps.release_drafter.outputs.name }}"
33+
# - run: echo "name ${{ steps.release_drafter.outputs.name }}"
2934
# - run: npm run update:packageVersion ${{ steps.release_drafter.outputs.name }}
3035
# # update the readme
3136
# - run: npm run update:readme

.github/workflows/publish.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ jobs:
2424
with:
2525
node-version: "12.x"
2626
registry-url: https://registry.npmjs.org/
27-
- uses: release-drafter/release-drafter@v5
28-
id: release_drafter
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
- run: echo "bumping package to ${{ steps.release_drafter.outputs.name }}"
27+
- uses: ml5/github-action-get-latest-release@master
28+
id: latest_release
29+
with:
30+
repository: ${{ github.repository }}
31+
# - uses: release-drafter/release-drafter@v5
32+
# id: release_drafter
33+
# env:
34+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- run: echo "bumping package to ${{ steps.latest_release.outputs.release }}"
3236
# bump the package version
33-
- run: npm run update:packageVersion ${{ steps.release_drafter.outputs.name }}
37+
- run: npm run update:packageVersion ${{ steps.latest_release.outputs.release }}
3438
# bump the readme
3539
- run: npm run update:readme
3640
# install packages
@@ -46,10 +50,10 @@ jobs:
4650
uses: ad-m/github-push-action@master
4751
with:
4852
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
branch: ${{ github.ref }}
53+
branch: main
5054
# build it!
5155
- run: npm run build
5256
# publish with the name - should only be the numbers like 0.9.5
53-
- run: npm publish ${{ steps.release_drafter.outputs.name }}
57+
- run: npm publish ${{ steps.latest_release.outputs.release }}
5458
env:
5559
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@ Before getting started with ml5.js, review our [Code of Conduct](https://github.
5252

5353

5454

55+
5556

5657

5758
<p id="latest-version">
5859

59-
* You can use the latest version (0.9.3) by adding it to the head section of your HTML document:
60+
* You can use the latest version (0.9.4) by adding it to the head section of your HTML document:
6061

61-
**v0.9.3**
62+
**v0.9.4**
6263

63-
<script src="https://unpkg.com/[email protected].3/dist/ml5.min.js" type="text/javascript"></script>
64+
<script src="https://unpkg.com/[email protected].4/dist/ml5.min.js" type="text/javascript"></script>
6465

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

@@ -86,6 +87,7 @@ Before getting started with ml5.js, review our [Code of Conduct](https://github.
8687

8788

8889

90+
8991

9092

9193

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ml5",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A friendly machine learning library for the web.",
55
"main": "dist/ml5.min.js",
66
"directories": {

0 commit comments

Comments
 (0)