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 <noreply@github.com>
  • Loading branch information
sr229 authored Oct 10, 2024
1 parent 754e011 commit 67063c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,39 @@

name: Node.js Package

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

jobs:
release-ghpr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v4.2.1
- 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
- run: |
pnpm install
# workaround to get it publish on ghpr scope
sed -i 's/"name": "sagiri"/"name": "@claritycafe\/sagiri"/g' package.json
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4.2.1
- uses: actions/setup-node@v4
Expand All @@ -41,6 +46,6 @@ jobs:
with:
version: 9
- run: pnpm install
- run: npm publish --access public
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
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 67063c9

Please sign in to comment.