-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vinayak Kulkarni <[email protected]>
- Loading branch information
1 parent
1c05b47
commit d91544f
Showing
25 changed files
with
234 additions
and
13,105 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,46 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
versioning-strategy: increase | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
time: '00:00' | ||
timezone: Asia/Calcutta | ||
groups: | ||
npm-development: | ||
dependency-type: development | ||
update-types: | ||
- minor | ||
- patch | ||
npm-production: | ||
dependency-type: production | ||
update-types: | ||
- patch | ||
reviewers: | ||
- vinayakkulkarni | ||
assignees: | ||
- vinayakkulkarni | ||
commit-message: | ||
prefix: fix | ||
prefix-development: chore | ||
include: scope | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
time: '00:00' | ||
timezone: Asia/Calcutta | ||
groups: | ||
actions-minor: | ||
update-types: | ||
- minor | ||
- patch | ||
reviewers: | ||
- vinayakkulkarni | ||
assignees: | ||
- vinayakkulkarni | ||
commit-message: | ||
prefix: fix | ||
prefix-development: chore | ||
include: scope |
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,36 @@ | ||
name: 'Automerge Dependabot PRs' | ||
|
||
on: pull_request_target | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata 🤖 | ||
id: metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
alert-lookup: true | ||
compat-lookup: true | ||
github-token: ${{ secrets.DEPENDABOT_TOKEN }} | ||
|
||
- name: Authenticate CLI with PAT 🔐 | ||
run: echo "${{ secrets.DEPENDABOT_TOKEN }}" | gh auth login --with-token | ||
|
||
- name: Approve Dependabot PRs 👍 | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }} | ||
|
||
- name: Auto-merge Dependabot PRs 🕺 | ||
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }} |
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,13 +1,13 @@ | ||
name: 'Ship js trigger' | ||
name: Ship js trigger | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
build: | ||
name: Release | ||
publish-to-npm: | ||
name: 'Publishing to NPM ✨' | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v') | ||
steps: | ||
|
@@ -22,19 +22,45 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
- name: Setup node environment 📦 | ||
uses: actions/setup-node@v4 | ||
- name: Setup bun env 🐰 | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
node-version-file: 'package.json' | ||
check-latest: true | ||
cache: 'npm' | ||
bun-version: 1.0.25+a8ff7be64 | ||
|
||
- name: Install dependencies 🚀 | ||
run: npm ci --prefer-offline --no-audit | ||
run: bun install | ||
|
||
- name: Trigger a release 🥳 | ||
run: npx shipjs trigger | ||
- name: Trigger a release (NPM) 🥳 | ||
run: bunx shipjs trigger | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }} | ||
|
||
publish-to-jsr: | ||
name: 'Publishing to JSR ✨' | ||
runs-on: ubuntu-latest | ||
needs: publish-to-npm | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout code 🛎 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: Setup bun env 🐰 | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies 🚀 | ||
run: bun install | ||
|
||
- name: Build the package 🎉 | ||
run: bun run build | ||
|
||
- name: Trigger a release (JSR) 🥳 | ||
run: bunx jsr publish |
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 @@ | ||
npm exec --no -- lint-staged --no-stash | ||
bun lint-staged --no-stash |
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,2 @@ | ||
registry=https://registry.npmjs.org | ||
@jsr:registry=https://npm.jsr.io |
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 @@ | ||
node | ||
20 |
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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin" | ||
] | ||
} |
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,7 @@ | ||
{ | ||
"files.eol": "\n", | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit" | ||
}, | ||
} |
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,10 @@ | ||
{ | ||
"name": "@vinayakkulkarni/v-mapbox", | ||
"version": "5.0.0", | ||
"exports": "./dist/v-mapbox.js", | ||
"publish": { | ||
"exclude": [ | ||
"!dist" | ||
] | ||
} | ||
} |
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 @@ | ||
module.exports = { | ||
'*.{js,ts,vue}': 'npm run lint:js', | ||
'*.{css,vue}': 'npm run lint:css', | ||
'*.{js,ts,vue}': 'bun run lint:js', | ||
'*.{css,vue}': 'bun run lint:css', | ||
}; |
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,6 +1,6 @@ | ||
[dev] | ||
command = "npm run docs:dev" | ||
command = "bun run docs:dev" | ||
|
||
[build] | ||
command = "npm run docs:build" | ||
publish = "docs/.vitepress/dist" | ||
command = "./scripts/build.sh" | ||
publish = "docs/.vitepress/dist" |
Oops, something went wrong.