-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ standardize community features
- Loading branch information
Showing
12 changed files
with
244 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [JamesIves] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: unit-tests | ||
name: Unit Tests 🧪 | ||
on: | ||
pull_request: | ||
branches: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: integration-tests | ||
name: Integration Tests 🧪 | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 }} |