This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test push eslint Version Packages (#5) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> fix private bool fix private bool test publish:prepare add empty readme Update pnpm to v8.7.0 (#2) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> format codeql on pr only add tmp description add CHANGELOG to npmignore add peerDependencies fix lock test snapshot command (#7) add env variables Update peter-evans/create-or-update-comment action to v3 (#8) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> add npm variable add npm tag edit message save output regex 😅 test multiline ? test multiline ? more logs double space ? gnegne test with newline ? simpler this way
- Loading branch information
Showing
19 changed files
with
231 additions
and
143 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,5 @@ | ||
--- | ||
"@pedaki/prettier-config": patch | ||
--- | ||
|
||
add prettier in peerDependencies |
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 @@ | ||
--- | ||
"@pedaki/eslint-config": patch | ||
--- | ||
|
||
add eslint in peerDependencies |
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
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,131 @@ | ||
# Based on https://github.com/Shopify/polaris | ||
|
||
name: Snapshot Release | ||
|
||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
snapshot: | ||
name: Snapshot Release | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.event.issue.pull_request && | ||
github.event.comment.body == '/snapshot' && | ||
github.repository == 'pedakihq/pedaki' | ||
steps: | ||
- name: Add initial reaction | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
comment-id: ${{ github.event.comment.id }} | ||
reactions: eyes | ||
edit-mode: replace | ||
body: | | ||
@${{ github.actor }} your snapshot release is being processed. | ||
:hourglass_flowing_sand: This may take a few minutes... | ||
- name: Enforce permission requirement | ||
id: check-permissions | ||
continue-on-error: true | ||
uses: prince-chrismc/check-actor-permissions-action@v2 | ||
with: | ||
permission: write | ||
|
||
- name: Add reaction if permission requirement not met | ||
if: steps.check-permissions.outcome == 'failure' | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
comment-id: ${{ github.event.comment.id }} | ||
reactions: confused | ||
edit-mode: replace | ||
body: | | ||
@${{ github.actor }} you do not have permission to run this command. | ||
Please ask a maintainer to run this command for you. | ||
- name: Exit if permission requirement not met | ||
if: steps.check-permissions.outcome == 'failure' | ||
run: exit 1 | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Because changeset entries are consumed and removed on the | ||
# 'changeset-release/main' branch, we need to reset the files | ||
# so the following 'changeset version --snapshot' command will | ||
# regenerate the package version bumps with the snapshot releases | ||
- name: Reset changeset entries on changeset-release/main branch | ||
run: | | ||
if [[ $(git branch --show-current) == 'changeset-release/main' ]]; then | ||
git checkout origin/main -- .changeset | ||
fi | ||
- uses: pnpm/action-setup@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
|
||
- name: Install deps | ||
run: pnpm install --child-concurrency 3 --frozen-lockfile --prefer-offline | ||
|
||
- name: Create an .npmrc | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
- name: Run Changeset | ||
id: changeset | ||
run: | | ||
pnpm exec changeset version --snapshot | ||
pnpm run publish:prepare | ||
output=$(pnpm exec changeset publish --tag next) | ||
echo "$output" | ||
version=$(echo "$output" | grep -zoE 'New tag: *.*@([^ \n]+)' | head -n 1 | sed -E 's/New tag: *.*@([^ \n]+)/\1/') | ||
echo "VERSION=$version" | ||
echo "version=$version" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Send success comment | ||
uses: peter-evans/create-or-update-comment@v3 | ||
if: success() | ||
with: | ||
comment-id: ${{ github.event.comment.id }} | ||
reactions: rocket | ||
reactions-edit-mode: replace | ||
edit-mode: replace | ||
body: | | ||
@${{ github.actor }} your snapshot release has been published! | ||
:rocket: `${{ steps.changeset.outputs.version }}` | ||
- name: Send failure comment | ||
uses: peter-evans/create-or-update-comment@v3 | ||
if: failure() | ||
with: | ||
comment-id: ${{ github.event.comment.id }} | ||
reactions: -1 | ||
reactions-edit-mode: replace | ||
edit-mode: replace | ||
body: | | ||
@${{ github.actor }} your snapshot release failed to publish. | ||
Please check the logs for more information. |
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,2 +1,3 @@ | ||
.idea | ||
node_modules | ||
node_modules | ||
.envrc |
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 @@ | ||
CHANGELOG.md |
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,7 @@ | ||
# @pedaki/eslint-config | ||
|
||
## 0.0.1 | ||
|
||
### Patch Changes | ||
|
||
- [#3](https://github.com/PedakiHQ/pedaki/pull/3) [`b35c14e`](https://github.com/PedakiHQ/pedaki/commit/b35c14ed0deee6070b064f9a7c145ee9ca000936) Thanks [@Vahor](https://github.com/Vahor)! - add prettier and eslint packages |
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 @@ | ||
# @pedaki/eslint-config |
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,16 +1,25 @@ | ||
{ | ||
"name": "@pedaki/eslint-config", | ||
"version": "1.0.0", | ||
"version": "0.0.1", | ||
"main": "index.js", | ||
"author": "Nathan David <me@vahor.fr>", | ||
"repository": "https://github.com/PedakiHQ/pedaki/tree/main/packages/eslint-config", | ||
"homepage": "https://www.pedaki.fr", | ||
"description": "ESLint configuration for Pedaki projects", | ||
"license": "MIT", | ||
"private": "false", | ||
"private": false, | ||
"scripts": { | ||
"format": "prettier --write . --cache", | ||
"format:check": "prettier --check . --cache" | ||
}, | ||
"devDependencies": { | ||
"@types/eslint": "^8.44.2", | ||
"@typescript-eslint/eslint-plugin": "6.4.1", | ||
"@typescript-eslint/parser": "6.4.1", | ||
"eslint": "^8.47.0", | ||
"eslint-config-next": "^13.4.19", | ||
"eslint-config-prettier": "^9.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^8.47.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
CHANGELOG.md |
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,7 @@ | ||
# @pedaki/prettier-config | ||
|
||
## 0.0.1 | ||
|
||
### Patch Changes | ||
|
||
- [#3](https://github.com/PedakiHQ/pedaki/pull/3) [`b35c14e`](https://github.com/PedakiHQ/pedaki/commit/b35c14ed0deee6070b064f9a7c145ee9ca000936) Thanks [@Vahor](https://github.com/Vahor)! - add prettier and eslint packages |
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 @@ | ||
# @pedaki/prettier-config |
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,14 +1,23 @@ | ||
{ | ||
"name": "@pedaki/prettier-config", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"main": "index.js", | ||
"author": "Nathan David <me@vahor.fr>", | ||
"repository": "https://github.com/PedakiHQ/pedaki/tree/main/packages/prettier-config", | ||
"homepage": "https://www.pedaki.fr", | ||
"description": "Prettier configuration for Pedaki projects", | ||
"license": "MIT", | ||
"private": "false", | ||
"private": false, | ||
"scripts": { | ||
"format": "prettier --write . --cache", | ||
"format:check": "prettier --check . --cache" | ||
}, | ||
"devDependencies": { | ||
"prettier-plugin-tailwindcss": "^0.5.3", | ||
"@types/prettier": "^2.7.3", | ||
"prettier": "^3.0.2", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0" | ||
}, | ||
"peerDependencies": { | ||
"prettier": "^3.0.2" | ||
} | ||
} |
Oops, something went wrong.