-
Notifications
You must be signed in to change notification settings - Fork 8
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
2425068
commit bae0d88
Showing
23 changed files
with
150 additions
and
12,135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,23 +13,18 @@ jobs: | |
working-directory: './example/' | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup node env 📦 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'current' | ||
check-latest: true | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Setup bun env 🐰 | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install dependencies 🚀 | ||
run: npm ci --prefer-offline --no-audit --omit=optional | ||
run: bun install --frozen-lockfile | ||
|
||
- name: Run build 🏁 | ||
run: npm run build | ||
run: bun run build | ||
|
||
- name: Deploy to GitHub Pages 🚀 | ||
uses: peaceiris/[email protected] | ||
|
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,18 +1,18 @@ | ||
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: | ||
- name: Checkout code 🛎 | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
@@ -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 --omit=optional | ||
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
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 |
Binary file not shown.
Oops, something went wrong.