-
Notifications
You must be signed in to change notification settings - Fork 210
45 lines (39 loc) · 1.16 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on: workflow_dispatch # TODO set this on a deploy schedule
jobs:
release:
name: Release
environment:
name: release
runs-on:
group: npm-deploy
permissions:
id-token: write
contents: write
steps:
- name: Load Secrets
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0
with:
# Export loaded secrets as environment variables
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
NPM_TOKEN: op://npm-deploy/npm-runner-token/secret
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "true"
fetch-depth: 2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@uniswap'
- name: Setup CI
run: npm ci
- name: Publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}