Skip to content

Commit

Permalink
Sr229/fix ghpr (#622)
Browse files Browse the repository at this point in the history
* set scope properly for GHPR

Signed-off-by: GitHub <[email protected]>

* Setup provenance and JSR

Signed-off-by: GitHub <[email protected]>

---------

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
sr229 authored Oct 10, 2024
1 parent 754e011 commit 6922410
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/release.node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,22 @@ jobs:
permissions:
contents: read
id-token: write
packages: write
steps:
- 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
- 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 }}

Expand All @@ -41,6 +47,19 @@ 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 }}

release-jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/[email protected]
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: bunx jsr publish
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clarity/sagiri",
"version": "4.2.2",
"version": "4.2.3",
"exports": "./src/sagiri.ts",
"publish": {
"include": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sagiri",
"version": "4.2.2",
"version": "4.2.3",
"description": "A simple, lightweight and actually good JS wrapper for the SauceNAO API.",
"license": "MIT",
"main": "./dist/sagiri.cjs",
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 6922410

Please sign in to comment.