Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit e4134f1

Browse files
committed
chore(ci): Add trusted publishing
1 parent 70bc2e4 commit e4134f1

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15+
- uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4
16+
1517
- name: Check out Git repository
16-
uses: actions/checkout@v2
18+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1719

1820
- name: Set up node
19-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
2022
with:
2123
node-version: 12.x
2224
registry-url: https://registry.npmjs.org

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,25 @@ jobs:
1010
runs-on:
1111
group: npm-deploy
1212
steps:
13-
- name: Load Secrets
14-
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0
15-
with:
16-
# Export loaded secrets as environment variables
17-
export-env: true
18-
env:
19-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
20-
NPM_TOKEN: op://npm-deploy/npm-runner-token/secret
13+
- uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4
2114

2215
- name: Checkout
23-
uses: actions/checkout@v4
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2417
with:
2518
submodules: "true"
2619
fetch-depth: 2
2720

2821
- name: Setup Node
29-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
3023
with:
31-
node-version: 18
24+
node-version: 20.x
3225
registry-url: 'https://registry.npmjs.org'
3326
# Defaults to the user or organization that owns the workflow file
3427
scope: '@uniswap'
3528

29+
- name: Install npm
30+
run: npm install -g npm@latest
31+
3632
- name: Setup CI
3733
run: npm ci
3834

@@ -41,5 +37,3 @@ jobs:
4137

4238
- name: Publish
4339
run: npm publish
44-
env:
45-
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v1
16-
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
16+
- uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
1717
with:
1818
node-version: 12.x
1919
registry-url: https://registry.npmjs.org
2020

2121
- id: yarn-cache
2222
run: echo "::set-output name=dir::$(yarn cache dir)"
2323

24-
- uses: actions/cache@v1
24+
- uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1.2.1
2525
with:
2626
path: ${{ steps.yarn-cache.outputs.dir }}
2727
key: yarn-${{ hashFiles('**/yarn.lock') }}

0 commit comments

Comments
 (0)