Skip to content

Commit

Permalink
set scope properly for GHPR
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
sr229 authored Oct 10, 2024
1 parent 754e011 commit 30e59f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/release.node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

name: Node.js Package

on:
push:
tags: ["**"]
on: push
# push:
# tags: ["**"]

jobs:
release-ghpr:
Expand All @@ -17,14 +17,20 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
scope: "@claritycafe"
- uses: pnpm/action-setup@v4
with:
version: 9
- run: pnpm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
pnpm install
# workaround to get it publish on ghpr scope
sed -i 's/sagiri/@claritycafe\/sagiri/g' package.json
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"

release-npm:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log(`
console.debug(`
**************************************************
* *
* Thank you for using Sagiri <3! *
Expand Down

0 comments on commit 30e59f5

Please sign in to comment.