Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 94ef747

Browse files
author
Sujaykumar Hublikar
committed
Update workflow
1 parent 08d1d2f commit 94ef747

File tree

3 files changed

+23
-45
lines changed

3 files changed

+23
-45
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@ name: "🚀 publish"
33

44
on:
55
push:
6-
branches:
7-
- main
6+
# branches:
7+
# - main
88
tags:
9-
- "*"
9+
- "v*"
1010
paths:
1111
- 'package.json'
1212
- 'package-lock.json'
1313
- 'src'
1414

15-
# workflow_dispatch:
16-
# inputs:
17-
# relVersion:
18-
# description: 'Version'
19-
# required: true
20-
2115
jobs:
2216

2317
# Generate dist
@@ -40,8 +34,28 @@ jobs:
4034
- run: npm install
4135

4236
# Build dist
37+
- run: mkdir dist
4338
- run: npm run all
4439

40+
# publish release
41+
- run: echo ${{ github.sha }} >> Release.txt
42+
- run: mv LICENSE LICENSE.txt
43+
- name: "📦 Github Release"
44+
uses: "marvinpinto/action-automatic-releases@latest"
45+
if: startsWith(github.ref, 'refs/tags/')
46+
with:
47+
automatic_release_tag: "latest"
48+
prerelease: false
49+
files: |
50+
src/*.js
51+
dist/*.js
52+
package.json
53+
Release.txt
54+
LICENSE.txt
55+
README.md
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
4559
# Publish to npm
4660
- name: "📦 publish to npm"
4761
uses: JS-DevTools/npm-publish@v1

dist/plugin.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

dist/plugin.min.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)