-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adjustments to
gpm
release pipeline
- Loading branch information
1 parent
a086a4e
commit 664f0bb
Showing
1 changed file
with
14 additions
and
17 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
workflow_dispatch: | ||
inputs: | ||
force_github_package_release: | ||
description: Force GPR release | ||
description: Force GPM release | ||
type: boolean | ||
required: false | ||
default: false | ||
|
@@ -97,7 +97,7 @@ jobs: | |
key: ${{ runner.os }}-build-${{ hashFiles('**/bun.lockb') }} | ||
|
||
- name: 🛠️ Setup Node for NPM | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
check-latest: true | ||
|
@@ -122,14 +122,14 @@ jobs: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
gpr-release: | ||
gpm-release: | ||
name: 🚀 Release to GitHub Package Manager | ||
if: ${{ github.event.inputs.force_github_package_release != 'true' || needs.release.outputs.published == 'true' }} | ||
runs-on: ubuntu-latest | ||
needs: [build, release] | ||
permissions: | ||
contents: read | ||
packages: write | ||
contents: read | ||
steps: | ||
- name: 🔑 Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
@@ -145,27 +145,24 @@ jobs: | |
path: "**/node_modules" | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/bun.lockb') }} | ||
|
||
- name: 🛠️ Setup Node for GPR | ||
uses: actions/setup-node@v3 | ||
- name: ♻️ Load build files | ||
uses: actions/cache@v4 | ||
with: | ||
path: "**/dist" | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/bun.lockb') }} | ||
|
||
- name: 🛠️ Setup Node for GPM | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
check-latest: true | ||
registry-url: 'https://npm.pkg.github.com' | ||
|
||
- name: 👤 Set git user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Luke Morales" | ||
- name: 📦 Install dependencies | ||
if: steps.bun-cache.outputs.cache-hit != 'true' | ||
run: bun install --frozen-lockfile | ||
|
||
- name: ⚒️ Build package | ||
run: bun run build | ||
|
||
- name: 🚀 Publish to GPR | ||
run: npm publish | ||
- name: 🚀 Publish to GPM | ||
run: npm publish --registry https://npm.pkg.github.com | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |