Skip to content

Commit 75cf41e

Browse files
committed
ci: setup trusted publishing and bump version to 1.7.2
- Update workflow to use OIDC trusted publishing (removes need for NPM_TOKEN) - Add id-token: write permissions - Bump package version to 1.7.2 to verify new publishing setup
1 parent 5361ce9 commit 75cf41e

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/ubuntu_node.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [ main ]
77
jobs:
88
test_build_deploy:
9+
permissions:
10+
contents: write
11+
id-token: write
912
env:
1013
CI: true
1114
GENERATE_SOURCEMAP: false
@@ -52,10 +55,8 @@ jobs:
5255
run: pnpm run build
5356

5457
- name: 🚚 Publish to NPM
55-
uses: JS-DevTools/npm-publish@v3
56-
with:
57-
token: ${{ secrets.NPM_TOKEN }}
58-
package: packages/main/package.json
58+
run: pnpm publish --filter reactjs-use-form --provenance --no-git-checks
59+
# NODE_AUTH_TOKEN is not needed for Trusted Publishing
5960

6061
- name: 🏗️ Build example app
6162
run: pnpm run build:example

packages/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactjs-use-form",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "Reactive form management and input field validation hook",
55
"author": "amir0ff",
66
"license": "MIT",

0 commit comments

Comments
 (0)