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 f37d20a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,38 @@

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/sagiri/@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 +45,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 f37d20a

Please sign in to comment.