Skip to content

Commit 96d04d5

Browse files
committed
feat: auto tag release when package.json version change
Signed-off-by: seven <[email protected]>
1 parent 539f618 commit 96d04d5

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- package.json
8+
jobs:
9+
tag-npm-release:
10+
name: Tag new npm package releases
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: neverendingqs/gh-action-tag-on-npm-version@master

docs/.vitepress/theme/components/download.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const downloadFn = async (event) => {
1919
// const links = await getLatestLinks();
2020
// const link = links.find((item) => item.name.includes(platform[window.navigator.platform]));
2121
// console.log('downloadFn', fetch(link.url))
22-
console.log('downloadFn',window.navigator)
22+
console.log('downloadFn',await navigator.userAgentData.getHighEntropyValues(['architecture']))
2323
console.log('downloadFnJson',{ nv: JSON.stringify(window.navigator)})
2424
}
2525
</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dockit-site",
3-
"version": "1.0.0",
3+
"version": "0.0.4",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)