Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 22, 2024
1 parent 1a9dbfe commit e412c2e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 47 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,44 +58,3 @@ jobs:

- name: Unit Test
run: bun test

js-cs-fixer:
if: github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/auto-fixed/')

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install bun
uses: oven-sh/setup-bun@v1

- name: Install Dependencies
run: bun install

- name: Prepare Git User
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "[email protected]"
git checkout -B "${{ env.FIXER_BRANCH }}"
- name: Apply auto-fixers
run: bun run lint:fix

- name: Create Fixer PR
run: |
if [[ -z $(git status --porcelain) ]]; then
echo "Nothing to fix... Exiting."
exit 0
fi
OPEN_PRS=`curl --silent -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open"`
OPEN_FIXER_PRS=`echo ${OPEN_PRS} | grep -o "\"ref\": \"${{ env.FIXER_BRANCH }}\"" | wc -l`
git commit -am "${{ env.TITLE }}"
git push origin "${{ env.FIXER_BRANCH }}" --force
if [ ${OPEN_FIXER_PRS} -eq "0" ]; then
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/$GITHUB_REPOSITORY/pulls" \
-d "{ \"head\":\"${{ env.FIXER_BRANCH }}\", \"base\":\"${{ env.SOURCE_BRANCH }}\", \"title\":\"${{ env.TITLE }}\", \"body\":\"${{ env.DESCRIPTION }}\n\nTriggered by #${{ env.PR_NUMBER }}\" }"
fi
exit 1
2 changes: 2 additions & 0 deletions .vscode/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ heroicons
openweb
outdir
pausable
Postcardware
prefetch
preinstall
socio
Solana
stacksjs
typecheck
unplugin
Expand Down
43 changes: 37 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Bun Plugin - .env loader
# bun-plugin-env

## ☘️ Features
[![npm version][npm-version-src]][npm-version-href]
[![GitHub Actions][github-actions-src]][github-actions-href]
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![npm downloads][npm-downloads-src]][npm-downloads-href]

A simple loader for your dotenv files.

## Features

- Simple `.env` file loader
- Supports a wide variety of .env types
Expand Down Expand Up @@ -49,17 +56,41 @@ For casual chit-chat with others using this package:

[Join the Stacks Discord Server](https://discord.gg/stacksjs)

## 🙏🏼 Credits
## Postcardware

You will always be free to use the Stacks framework & any of its over 80 packages. At the same time, we would love to see which parts of the world Stacks ends up in. _We would love to receive a postcard—which we publish on our website._

Our address is: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA

##### _Thanks to Spatie for this wonderful idea._

## Sponsors

We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.

- [JetBrains](https://www.jetbrains.com/)
- [The Solana Foundation](https://solana.com/)

## Credits

Many thanks to the following core technologies & people who have contributed to this package:

- [Mot](https://github.com/motdotla)
- [dotenv](https://github.com/motdotla/dotenv)
- [Mot](https://github.com/motdotla) & [dotenv](https://github.com/motdotla/dotenv)
- [Chris Breuer](https://github.com/chrisbbreuer)
- [All Contributors](../../contributors)

## 📄 License
## License

The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.

Made with 💙

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/bun-plugin-env?style=flat-square
[npm-version-href]: https://npmjs.com/package/bun-plugin-env

[npm-downloads-src]: https://img.shields.io/npm/dm/bun-plugin-env?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/bun-plugin-env

[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/bun-plugin-env/ci.yml?style=flat-square&branch=main
[github-actions-href]: https://github.com/stacksjs/bun-plugin-env/actions?query=workflow%3Aci

0 comments on commit e412c2e

Please sign in to comment.