Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Create release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
draft: true
38 changes: 38 additions & 0 deletions .github/workflows/dev-pr-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Dev - PR Close'
on:
pull_request:
branches:
- develop
types:
- closed
jobs:
merge_pr:
name: 'PR Merged'
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_ORG_PAT }}
- uses: actions/setup-node@v2
with:
node-version: 20
cache: 'npm'
- name: Git config
run: |
git config --global user.email "${{ secrets.GH_ORG_EMAIL }}"
git config --global user.name "${{ secrets.GH_ORG_NAME }}"
- name: Apply version bump (major)
if: contains(github.event.pull_request.labels.*.name, 'major')
run: npm version major
- name: Apply version bump (minor)
if: contains(github.event.pull_request.labels.*.name, 'minor')
run: npm version minor
- name: Apply version bump (patch)
if: contains(github.event.pull_request.labels.*.name, 'patch')
run: npm version patch
- name: Git push version bump
run: git push origin develop --follow-tags --force
- id: set-version
name: Output version change
run: npm pkg get version
22 changes: 22 additions & 0 deletions .github/workflows/dev-pr-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Dev - PR Label Checker'
on:
pull_request:
branches:
- develop
types:
- reopened
- labeled
- unlabeled
jobs:
check_labels:
name: 'Check PR Labels'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mheap/github-action-required-labels@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
mode: exactly
count: 1
labels: 'major, minor, patch'
17 changes: 17 additions & 0 deletions .github/workflows/dev-pr-open.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Dev - PR Open'
on:
pull_request:
branches:
- develop
types:
- opened
jobs:
add_comment:
name: 'Add Comment'
runs-on: ubuntu-latest
steps:
- uses: mshick/add-pr-comment@v1
with:
message: Please set a versioning label of either `major`, `minor`, or `patch` to the pull request.
repo-token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: sudo apt-get install -y libkrb5-dev
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mieweb/wikigdrive",
"version": "2.0.0-alpha",
"version": "2.12.1",
"description": "Google Drive to MarkDown synchronization",
"type": "module",
"keywords": [
Expand Down

0 comments on commit 86827df

Please sign in to comment.