Skip to content

Commit

Permalink
fix: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanpdn committed Feb 20, 2023
1 parent 51e9367 commit 14f9ac1
Show file tree
Hide file tree
Showing 4 changed files with 3,020 additions and 97 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/vue-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,8 @@ jobs:
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Change package.json version
run: npm version --no-git-tag-version patch
- name: Commit and push new version
run: |
git config --global user.email "hassanpudineh67@gmail.com"
git config --global user.name "hassanpdn"
git add package.json
git commit -m "Updated package.json version"
git push
- name: Update local version
run: |
git pull origin main
npm install --no-package-lock
- name: publish
run: npm publish --access public
- name: Release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npx semantic-release
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"coverage": "vitest run --coverage"
},
"dependencies": {
"awesome-vue-ui": "^0.1.7",
"vue": "^3.2.25"
},
"devDependencies": {
Expand All @@ -36,6 +37,7 @@
"autoprefixer": "^10.4.13",
"jsdom": "^21.1.0",
"postcss": "^8.4.21",
"semantic-release": "^20.1.0",
"tailwindcss": "^3.2.6",
"vite": "^3.2.5",
"vitest": "^0.28.5"
Expand Down
7 changes: 4 additions & 3 deletions src/components/Button/VButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
duration-500
ease-linear"
:class="{'w-full': expanded}"
@click="handleClick"
>
<slot/>
</button>
Expand All @@ -28,9 +29,9 @@
}
},
methods: {
// handleClick(){
// this.$emit('click')
// }
handleClick(){
this.$emit('click')
}
}
}
</script>
Expand Down
Loading

0 comments on commit 14f9ac1

Please sign in to comment.