Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kolirt committed Oct 12, 2023
1 parent 74bb432 commit fdb79ab
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/_old/publish-to-npm.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 🚀 publish to npm

on:
push:
branches:
- master

jobs:
release:
name: 🚀 Release
runs-on: ubuntu-latest
steps:
- name: 📚 Checkout
uses: actions/checkout@v3
- uses: johnnybenson/package-json-versioned-action@v1.0.5
id: package-json
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create tag
if: steps.package-json.outputs.has-updated == 'true'
uses: negz/create-tag@v1
with:
version: ${{ steps.package-json.outputs.version }}
message: ${{ steps.package-json.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🟢 Node
if: steps.package-json.outputs.has-updated == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: 🕵 Yarn install
if: steps.package-json.outputs.has-updated == 'true'
uses: borales/actions-yarn@v4
with:
cmd: install
- name: 🏗 Build
if: steps.package-json.outputs.has-updated == 'true'
uses: borales/actions-yarn@v4
with:
cmd: build-lib
- name: 🚀 Publish
if: steps.package-json.outputs.has-updated == 'true'
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ lerna-debug.log*

node_modules
.DS_Store
#dist
dist
dist-ssr
demo
coverage
*.local

Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
"keywords": [
"vue",
"vue3",
"vuejs"
"vuejs",
"dialog",
"alert",
"modal",
"vue-js-modal",
"vue-modal",
"popup"
],
"scripts": {
"build-lib": "run-p type-check-lib build-only-lib",
Expand Down

0 comments on commit fdb79ab

Please sign in to comment.