Skip to content

Commit

Permalink
sync-server: synced file(s) with lumirlumir/lumirlumir-configs (#21)
Browse files Browse the repository at this point in the history
* sync-server: synced local './.github/ISSUE_TEMPLATE/bug.md' with remote './configs/.github/ISSUE_TEMPLATE/bug.md'

* sync-server: synced local './.github/workflows/bump.yml' with remote './configs/.github/workflows/bump.yml'

* sync-server: synced local './.github/workflows/labeler.yml' with remote './configs/.github/workflows/labeler.yml'

* sync-server: synced local './.github/workflows/lint.yml' with remote './configs/.github/workflows/lint.yml'

* sync-server: synced local './.github/workflows/sync-client.yml' with remote './configs/.github/workflows/sync-client.yml'

* sync-server: synced local './.github/PULL_REQUEST_TEMPLATE.md' with remote './configs/.github/PULL_REQUEST_TEMPLATE.md'

* sync-server: synced local './.github/release.yml' with remote './configs/.github/release.yml'
  • Loading branch information
lumirlumir authored Sep 10, 2024
1 parent b0968e7 commit 9a04ffa
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ title: 'Bug: '
Link to code example:

<!--
Please provide a CodeSandbox, a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Provide a CodeSandbox, link to a repository on GitHub, or minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve.
-->
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes.
Please provide enough information so that others can review your pull request.
Before making a pull request, please read our contributing guidelines in `README.md`.
Before making a pull request, read our contributing guidelines in `README.md`.
-->

# Title
Expand Down
4 changes: 2 additions & 2 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ changelog:
labels:
- feat

- title: 🐛 Bugfixes
- title: 🐛 Bug Fixes
labels:
- fix

Expand All @@ -28,7 +28,7 @@ changelog:
labels:
- test

- title: ⬆️ Dependency updates
- title: ⬆️ Dependency Updates
labels:
- dependencies

Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ on:
workflow_dispatch:
inputs:
type:
description: 'Select the type of version bump'
description: Select the type of version bump
required: true
type: choice
default: 'patch'
default: patch
options:
- patch
- minor
Expand All @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ secrets.GH_PAT }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Set up checkout
Expand All @@ -37,28 +37,23 @@ jobs:
- name: Set up node_modules
run: npm ci

- name: Set up SHA
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV

- name: Set up old version
run: echo "OLD_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Set up environment variables
run: |
echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV
echo "OLD_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Set up github
- name: Bump
run: |
git config --global user.name 'github-actions'
git config --global user.email 'actions@github.com'
git switch -c release-${{ inputs.type }}-${{ env.SHORT_SHA }}
- name: Bump
run: |
npm version ${{ inputs.type }} -m "release(${{ inputs.type }}): v%s"
- name: Set up new version
- name: Set up environment variables
run: echo "NEW_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Push
run: |
git push --set-upstream origin release-${{ inputs.type }}-${{ env.SHORT_SHA }}
run: git push --set-upstream origin release-${{ inputs.type }}-${{ env.SHORT_SHA }}

- name: Create pull request
run: |
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ jobs:
labeler:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: Labeler
uses: jimschubert/labeler-action@v2
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ on:

jobs:
lint:
# strategy:
# matrix:
# type:
# - eslint
# - prettier
# - editorconfig
# - markdownlint

runs-on: ubuntu-latest

steps:
Expand All @@ -40,6 +32,3 @@ jobs:

- name: Lint
run: npm run lint

# - name: Lint ${{ matrix.type }}
# run: npm run lint-${{ matrix.type }} --if-present
3 changes: 1 addition & 2 deletions .github/workflows/sync-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up checkout
uses: actions/checkout@v4

- name: Set up SHA
- name: Set up environment variables
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV

- name: Sync
Expand All @@ -24,4 +24,3 @@ jobs:
ASSIGNEES: ${{ github.repository_owner }}
COMMIT_PREFIX: ${{ github.workflow }}${{':'}}
PR_BODY: check out [`${{ env.SHORT_SHA }}`](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) @${{ github.repository_owner }} :hatching_chick:.
# See https://docs.github.com/ko/actions/writing-workflows/choosing-what-your-workflow-does/contexts#github-context for more detailed context

0 comments on commit 9a04ffa

Please sign in to comment.