-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
86 additions
and
5,489 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
type: choice | ||
description: Select the version change | ||
required: true | ||
default: 'minor' | ||
options: | ||
- major | ||
- minor | ||
|
@@ -22,39 +23,46 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js ⚙️ | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Setup Platform 🛠 | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
node-version: 'lts/*' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'npm' | ||
- name: Install node_modules 📦 | ||
bun-version: 1.1.13 | ||
|
||
- name: Install dependencies 📦 | ||
run: | | ||
npm ci | ||
bun install --frozen-lockfile | ||
bun add -g npm | ||
- name: Update version ↗ | ||
run: | | ||
git config --global user.name 'Philipp Kief' | ||
git config --global user.email '[email protected]' | ||
git config --global push.followTags true | ||
npm version ${{ env.VERSION_CHANGE }} -m "Release %s" | ||
- name: Get meta data 🔍 | ||
run: | | ||
NODE_VERSION=$(node -p -e "require('./package.json').version") | ||
echo VERSION=$NODE_VERSION >> $GITHUB_ENV | ||
NODE_NAME=$(node -p -e "require('./package.json').name") | ||
echo NAME=$NODE_NAME >> $GITHUB_ENV | ||
NODE_DISPLAY_NAME=$(node -p -e "require('./package.json').displayName") | ||
echo DISPLAY_NAME=$NODE_DISPLAY_NAME >> $GITHUB_ENV | ||
VERSION=$(bun --print "(await import('./package.json')).version") | ||
NAME=$(bun --print "(await import('./package.json')).name") | ||
DISPLAY_NAME=$(bun --print "(await import('./package.json')).displayName") | ||
echo VERSION=$VERSION >> $GITHUB_ENV | ||
echo NAME=$NAME >> $GITHUB_ENV | ||
echo DISPLAY_NAME=$DISPLAY_NAME >> $GITHUB_ENV | ||
- name: Build ⚒️ | ||
run: npm run build | ||
run: bun run build | ||
|
||
- name: Push tags 📌 | ||
run: git push | ||
|
||
- name: Release ${{ env.VERSION }} 🔆 | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: v${{ env.VERSION }} | ||
name: ${{ env.DISPLAY_NAME }} v${{ env.VERSION }} | ||
generate_release_notes: true | ||
|
||
- name: Publish to NPM Registry 🚀 | ||
run: npm publish | ||
env: | ||
|
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,2 +1 @@ | ||
#!/usr/bin/env node | ||
require('../lib/cli/index.js'); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.