-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6be8fa
commit 4f55ef5
Showing
29 changed files
with
1,426 additions
and
1,071 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
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 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 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 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 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 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,25 @@ | ||
jobs: | ||
accessibility_alt_text_bot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/[email protected] | ||
|
||
name: Accessibility Alt Text Bot | ||
|
||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
- edited | ||
issues: | ||
types: | ||
- edited | ||
- opened | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write |
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 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 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 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 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 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 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 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 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 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 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,81 +1,20 @@ | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
- uses: ./.github/actions/prepare | ||
- run: pnpm build | ||
- run: git config user.name "${GITHUB_ACTOR}" | ||
- run: git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
- name: Delete branch protection on main | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.ACCESS_TOKEN }} | ||
script: | | ||
try { | ||
await github.request( | ||
`DELETE /repos/omnidan/node-emoji/branches/main/protection`, | ||
); | ||
} catch (error) { | ||
if (!error.message?.includes?.("Branch not protected")) { | ||
throw error; | ||
} | ||
} | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
run: | | ||
if pnpm run should-semantic-release ; then | ||
pnpm release-it --verbose | ||
gh workflow run post-release.yml | ||
fi | ||
- if: always() | ||
name: Recreate branch protection on main | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.ACCESS_TOKEN }} | ||
script: | | ||
github.request( | ||
`PUT /repos/omnidan/node-emoji/branches/main/protection`, | ||
{ | ||
allow_deletions: false, | ||
allow_force_pushes: true, | ||
allow_fork_pushes: false, | ||
allow_fork_syncing: true, | ||
block_creations: false, | ||
branch: "main", | ||
enforce_admins: false, | ||
owner: "omnidan", | ||
repo: "node-emoji", | ||
required_conversation_resolution: true, | ||
required_linear_history: false, | ||
required_pull_request_reviews: null, | ||
required_status_checks: { | ||
checks: [ | ||
{ context: "build" }, | ||
{ context: "compliance" }, | ||
{ context: "lint" }, | ||
{ context: "lint_knip" }, | ||
{ context: "lint_markdown" }, | ||
{ context: "lint_package_json" }, | ||
{ context: "lint_packages" }, | ||
{ context: "lint_spelling" }, | ||
{ context: "prettier" }, | ||
{ context: "test" }, | ||
], | ||
strict: false, | ||
}, | ||
restrictions: null, | ||
} | ||
); | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
uses: omnidan/[email protected] | ||
|
||
name: Release | ||
|
||
|
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,17 @@ | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/prepare | ||
- run: pnpm run test --coverage | ||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
||
name: Test | ||
|
||
on: | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- main |
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 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 +1 @@ | ||
18.17.1 | ||
20.9.0 |
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,4 @@ | ||
.all-contributorsrc | ||
coverage/ | ||
lib/ | ||
pnpm-lock.yaml |
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
Oops, something went wrong.