Skip to content

Commit dac7e69

Browse files
committed
github action
1 parent a6084e4 commit dac7e69

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Releases
4+
5+
env:
6+
PLUGIN_NAME: logseq-plugin-jump-to-block
7+
8+
# Controls when the action will run.
9+
on:
10+
push:
11+
branches:
12+
- "master"
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
release:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: "18"
29+
- run: npm install
30+
- run: npm run build
31+
- name: Install zip
32+
uses: montudor/action-zip@v1
33+
- name: Release
34+
run: npx semantic-release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"npmPublish": false
3+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logseq-plugin-jump-to-block",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"main": "dist/index.html",
55
"logseq": {
66
"id": "logseq-plugin-jump-to-block"

0 commit comments

Comments
 (0)