Skip to content

Commit 2d3ea3d

Browse files
committed
use token again
1 parent af86511 commit 2d3ea3d

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/publish-errors.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish CoFHE Errors to NPM
22
on:
33
release:
44
types: [published]
5-
workflow_dispatch: # Allow manual trigger for testing
5+
workflow_dispatch:
66
push: # Temporary for testing
77
branches:
88
- feat/error-identifier-script
@@ -19,17 +19,12 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 20.x
22-
# Don't set registry-url when using NPM Trusted Publishers with OIDC
23-
# This prevents actions/setup-node from creating .npmrc that requires NODE_AUTH_TOKEN
22+
registry-url: 'https://registry.npmjs.org'
2423

2524
- name: Install dependencies
2625
working-directory: contracts/internal/host-chain
2726
run: npm install
2827

29-
- name: Clear NODE_AUTH_TOKEN
30-
run: |
31-
NODE_AUTH_TOKEN=""
32-
3328
- name: Extract errors and publish to NPM
3429
uses: roeezolantz/solidity-error-identifier-action@master
3530
env:
@@ -45,8 +40,10 @@ jobs:
4540
publish_npm: 'true'
4641
npm_package_name: '@fhenixprotocol/cofhe-errors'
4742
npm_binary_name: 'cofhe-errors'
43+
package_description: 'Error definitions and identifiers for CoFHE smart contracts'
44+
package_keywords: 'cofhe, fhe, homomorphic-encryption, errors, solidity, smart-contracts, fhenix'
45+
npm_token: ${{ secrets.NPM_TOKEN }}
4846
npm_provenance: 'true'
49-
# Using NPM Trusted Publishers with OIDC - no token needed
5047

5148
- name: Upload errors file
5249
run: ls -la cofhe-errors.json # Verify file exists in root

0 commit comments

Comments
 (0)