generated from BiscuitTin/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bootstrap release please (#13)
- Loading branch information
1 parent
a8ebeb1
commit db0dc10
Showing
16 changed files
with
119 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
with: | ||
command: manifest-release | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
|
||
# The logic below handles the npm publication: | ||
- uses: actions/checkout@v4 | ||
# these if statements ensure that a publication only occurs when | ||
# a new release is created: | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- name: Setup target Node.js to enable Corepack | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: pnpm | ||
registry-url: 'https://registry.npmjs.org' | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- run: pnpm install --frozen-lockfile | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- run: pnpm typegen | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- run: pnpm build | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created'] || steps.release.outputs['packages/eslint-parser-plain--release_created'] || steps.release.outputs['packages/eslint-plugin-format--release_created']}} | ||
|
||
- run: pnpm exec jiek publish --no-bumper --filter @biscuittin/eslint-config | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: ${{steps.release.outputs['packages/eslint-config--release_created']}} | ||
|
||
- run: pnpm exec jiek publish --no-bumper --filter @biscuittin/eslint-parser-plain | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: ${{steps.release.outputs['packages/eslint-parser-plain--release_created']}} | ||
|
||
- run: pnpm exec jiek publish --no-bumper --filter @biscuittin/eslint-plugin-format | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: ${{steps.release.outputs['packages/eslint-plugin-format--release_created']}} |
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,5 @@ | ||
{ | ||
"packages/eslint-config": "0.0.1", | ||
"packages/eslint-parser-plain": "0.0.1", | ||
"packages/eslint-plugin-format": "0.0.1" | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"name": "@bttin/eslint-config", | ||
"name": "@biscuittin/eslint-config", | ||
"type": "module", | ||
"version": "0.1.0", | ||
"version": "0.0.1", | ||
"description": "A collection of ESLint configurations for Biscuit Tin projects.", | ||
"author": "Biscuit Tin <[email protected]>", | ||
"license": "MIT", | ||
|
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,11 +1,11 @@ | ||
export function getFlatConfigName<T extends string>(module: T) { | ||
return { | ||
base: `@bttin/eslint-config/${module}`, | ||
setup: `@bttin/eslint-config/${module}/setup`, | ||
rules: `@bttin/eslint-config/${module}/rules`, | ||
stylistic: `@bttin/eslint-config/${module}/stylistic`, | ||
commonjs: `@bttin/eslint-config/${module}/commonjs`, | ||
module: `@bttin/eslint-config/${module}/module`, | ||
script: `@bttin/eslint-config/${module}/script`, | ||
base: `@biscuittin/eslint-config/${module}`, | ||
setup: `@biscuittin/eslint-config/${module}/setup`, | ||
rules: `@biscuittin/eslint-config/${module}/rules`, | ||
stylistic: `@biscuittin/eslint-config/${module}/stylistic`, | ||
commonjs: `@biscuittin/eslint-config/${module}/commonjs`, | ||
module: `@biscuittin/eslint-config/${module}/module`, | ||
script: `@biscuittin/eslint-config/${module}/script`, | ||
} as const | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,20 @@ | ||
{ | ||
"release-type": "node", | ||
"bump-minor-pre-major": true, | ||
"bump-patch-for-minor-pre-major": true, | ||
"draft": false, | ||
"prerelease": true, | ||
"separate-pull-requests": true, | ||
"packages": { | ||
"packages/eslint-config": { | ||
"changelog-path": "CHANGELOG.md" | ||
}, | ||
"packages/eslint-parser-plain": { | ||
"changelog-path": "CHANGELOG.md" | ||
}, | ||
"packages/eslint-plugin-format": { | ||
"changelog-path": "CHANGELOG.md" | ||
} | ||
}, | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |
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