Skip to content

Commit 9d781e3

Browse files
ci: use trusted publishing for library-solidity (#1991) (#1992)
Co-authored-by: Alex Quint <86411313+aquint-zama@users.noreply.github.com>
1 parent 2ecbbff commit 9d781e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/library-solidity-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
with:
3333
node-version: 20.x
3434

35+
- name: Update npm # required by trusted publishing
36+
run: npm install -g npm@11.7.0
37+
3538
- name: Prepare environment file
3639
working-directory: library-solidity
3740
run: cp .env.example .env
@@ -46,19 +49,17 @@ jobs:
4649

4750
- name: Publish prerelease to npm
4851
if: ${{ inputs.release != 'true' }}
49-
uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
52+
uses: JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # v4.1.1
5053
with:
5154
package: ./library-solidity/package.json
5255
tag: prerelease
53-
token: ${{ secrets.FHEVM_NPM_TOKEN }}
5456
provenance: true
5557
access: public
5658

5759
- name: Publish release to npm
5860
if: ${{ inputs.release == 'true' }}
59-
uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
61+
uses: JS-DevTools/npm-publish@7f8fe47b3bea1be0c3aec2b717c5ec1f3e03410b # v4.1.1
6062
with:
6163
package: ./library-solidity/package.json
62-
token: ${{ secrets.FHEVM_NPM_TOKEN }}
6364
provenance: true
6465
access: public

0 commit comments

Comments
 (0)