Release #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
contents: write | |
id-token: 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: Build | |
run: npm run build | |
- name: Publish | |
run: npm publish --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }} | |