Skip to content

Commit

Permalink
feat: ✨ standardize community features
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jul 5, 2024
1 parent 89313c2 commit a197b6d
Show file tree
Hide file tree
Showing 12 changed files with 244 additions and 123 deletions.
2 changes: 0 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# These are supported funding model platforms

github: [JamesIves]
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Bug Report 🐝
description: Create a bug report to help us improve the action.
title: 'bug: 🐝 '
labels: ['bug 🐝', 'triage ⚠️']
assignees:
- JamesIves
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to report a bug. Please fill out the sections below to help us reproduce the issue and improve the action. If you're unsure about something, feel free to skip it or write N/A in the field.
[Please check the Q&A before posting an issue here](https://github.com/JamesIves/github-sponsors-readme-action/discussions/categories/q-a).
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: 'Please provide a clear and concise description of what the bug is and what you expected to happen.'
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: Reproduction Steps
description: 'Steps to reproduce the behavior. Please provide a minimal example if possible.'
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: "Please provide your deployment logs if applicable. If the error message isn't revealing the problem please set ACTIONS_STEP_DEBUG to true in your repository's secrets menu and run the workflow again."
render: shell
validations:
required: false
- type: textarea
id: workflow
attributes:
label: Workflow
description: 'Please provide a link or snippet of your workflow yml file.'
render: yml
validations:
required: true
- type: textarea
id: additional-comments
attributes:
label: Additional Comments
description: 'Add any other context about the problem here that does not fit elsewhere.'
validations:
required: false
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md

This file was deleted.

37 changes: 37 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
changelog:
categories:
- title: Breaking Changes 💥
labels:
- breaking 💥
- breaking
- title: New Features 🎉
labels:
- feature ✨
- feat
- title: Bug Fixes 🐝
labels:
- fix 🐝
- bug 🐝
- fix
- title: Performance ⚡
labels:
- performance ⚡
- perf
- title: Build 🔧
labels:
- build 🔧
- build
- title: Testing 🧪
labels:
- test 🧪
- test
- title: Documentation 📖
labels:
- documentation 📖
- docs
- title: Dependencies 🤖
labels:
- dependencies
- title: Other Changes
labels:
- '*'
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit-tests
name: Unit Tests 🧪
on:
pull_request:
branches:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: integration-tests
name: Integration Tests 🧪
on:
workflow_dispatch:
inputs:
Expand Down
95 changes: 95 additions & 0 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Label Pull Requests 🏷️

on:
pull_request:
types: [opened, reopened, labeled, unlabeled]

permissions:
pull-requests: write
contents: read

jobs:
assign-labels:
runs-on: ubuntu-latest
name: Assign labels in pull request 🏷️
if: github.event.pull_request.merged == false
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Assign Labels 🏷️
id: action-assign-labels
uses: mauroalderete/action-assign-labels@v1
with:
pull-request-number: ${{ github.event.pull_request.number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
conventional-commits: |
conventional-commits:
- type: 'fix'
nouns: ['FIX', 'Fix', 'fix', 'FIXED', 'Fixed', 'fixed']
labels: ['bug 🐝', 'fix 🐝']
- type: 'feature'
nouns: ['FEATURE', 'Feature', 'feature', 'FEAT', 'Feat', 'feat']
labels: ['feature ✨']
- type: 'breaking_change'
nouns: ['BREAKING CHANGE', 'BREAKING', 'MAJOR']
labels: ['breaking 💥']
- type: 'documentation'
nouns: ['doc', 'docu', 'document', 'documentation']
labels: ['documentation 📖']
- type: 'build'
nouns: ['build', 'rebuild']
labels: ['build 🔧']
- type: 'chore'
nouns: ['chore', 'tidy', 'cleanup']
labels: ['chore 🧹']
- type: 'dependencies'
nouns: ['dependency', 'dependencies', 'package', 'packages', 'bump', 'dependabot']
labels: ['dependencies 🤖']
- type: 'duplicate'
nouns: ['duplicate', 'dupe', 'copy']
labels: ['duplicate 2️⃣']
- type: 'good_first_issue'
nouns: ['good first issue', 'beginner', 'newcomer', 'first-timer']
labels: ['good first issue 🍩']
- type: 'help_wanted'
nouns: ['help wanted', 'need help', 'assistance required']
labels: ['help wanted ❕']
- type: 'proposal'
nouns: ['proposal', 'suggest', 'suggestion']
labels: ['proposal 🔮']
- type: 'question'
nouns: ['question', 'inquiry', 'query']
labels: ['question ❓']
- type: 'test'
nouns: ['test', 'testing', 'tests']
labels: ['test 🧪']
- type: 'triage'
nouns: ['triage', 'sort', 'prioritize']
labels: ['triage ⚠️']
- type: 'wontfix'
nouns: ['wontfix', 'will not fix', 'not fixing']
labels: ['wontfix 🔨']
- type: 'style'
nouns: ['style', 'formatting', 'format']
labels: ['style 🎀']
- type: 'security'
nouns: ['security', 'secure', 'safety']
labels: ['security 🔒']
- type: 'performance'
nouns: ['performance', 'speed', 'optimization']
labels: ['performance 🚀']
- type: 'refactor'
nouns: ['refactor', 'refactoring', 'rework']
labels: ['refactor 🛠']
- type: 'release'
nouns: ['release', 'deploy', 'deployment']
labels: ['release 🚀']
- type: 'ci'
nouns: ['ci', 'continuous integration', 'CI/CD']
labels: ['ci 🚀']
- type: 'hacktoberfest'
nouns: ['hacktoberfest', 'october', 'open source']
labels: ['hacktoberfest 🎃']
maintain-labels-not-matched: false
apply-changes: true
3 changes: 2 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Deploy Production Dependencies and Code
name: Deploy Production Dependencies and Code 🚀

on:
workflow_dispatch:
push:
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/publish.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: publish-sponsors
name: Publish Sponsors to README 📣

on:
workflow_dispatch:
schedule:
Expand Down
57 changes: 56 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Major Version Tag
name: Update Major Version Tag and Publish to Registry 📦

on:
push:
Expand All @@ -11,3 +11,58 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: nowactions/[email protected]

update-registries:
name: Publish to Registries 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev

# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
scope: '@jamesives'

- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "James Ives"
- name: Install Yarn
run: npm install -g yarn

- run: yarn install --frozen-lockfile
- run: yarn build
- run: git stash
- name: Set version to match the tag
run: |
VERSION=${GITHUB_REF#refs/tags/v}
npm version $VERSION -m "Release $VERSION 📣"
env:
GITHUB_REF: ${{ github.ref }}
- run: git push

# Publish to npm
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com'
scope: '@jamesives'

- name: Authenticate with the GitHub Package Registry
run: |
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
# Publish to GitHub Packages
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a197b6d

Please sign in to comment.