Skip to content

Commit

Permalink
fix: enabled provenance for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
2fd committed Apr 3, 2024
1 parent 2784ea8 commit 1361217
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ jobs:
runs-on: ubuntu-20.04

permissions:
contents: write
id-token: write # The OIDC ID token is used for authentication with JSR.
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

needs:
- test_node
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A dependency-free WebAssembly build of [Rust Regex](https://docs.rs/regex/latest/regex/) for Javascript

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/2fd/rregex/release.yml?branch=master) ![GitHub Release](https://img.shields.io/github/v/release/2fd/rregex) ![NPM Version](https://img.shields.io/npm/v/rregex)
![JSR Version](https://img.shields.io/jsr/v/%40rregex/rregex)
[![JSR](https://jsr.io/badges/@rregex/rregex)](https://jsr.io/@rregex/rregex)

> Note: this project is not intended to be used in production jet
Expand Down
1 change: 1 addition & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@rregex/rregex",
"version": "0.0.0-development",
"description": "A dependency-free WebAssembly build of Rust Regex for Javascript",
"exports": "./lib/esm.mjs",
"publish": {
"include": [
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "rregex",
"version": "0.0.0-development",
"description": "Rust Regex binding for Javascript",
"description": "A dependency-free WebAssembly build of Rust Regex for Javascript",
"private": false,
"type": "module",
"main": "./lib/commonjs.cjs",
"module": "./lib/esm.mjs",
"browser": "./lib/web.js",
"types": "./lib/types.d.ts",
"publishConfig": {
"provenance": true
},
"devDependencies": {
"@semantic-release/exec": "^6.0.3",
"concurrently": "^8.2.2",
Expand Down

0 comments on commit 1361217

Please sign in to comment.