Skip to content

Commit

Permalink
Setup provenance and JSR
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 67063c9 commit c6262d3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
20 changes: 17 additions & 3 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
# push:
# tags: ["**"]
on:
push:
tags: ["**"]

jobs:
release-ghpr:
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v4
Expand All @@ -49,3 +50,16 @@ jobs:
- 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

0 comments on commit c6262d3

Please sign in to comment.