Skip to content

Commit

Permalink
Merge pull request #1 from Uniswap/main
Browse files Browse the repository at this point in the history
  • Loading branch information
GloWE3 authored Sep 30, 2024
2 parents 8e9f553 + f57d6be commit da618ff
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 5 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release
on:
# manual trigger
workflow_dispatch:

jobs:
deploy:
name: release
runs-on:
group: npm-deploy
environment:
name: release
permissions:
id-token: write
contents: write
steps:
- name: Load secret
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 }}
# You may need to change this to your vault name and secret name
# Refer to it by calling env.NPM_TOKEN
# This token is also limited by IP to ONLY work on the runner
NPM_TOKEN: op://npm-deploy/npm-runner-token/secret

- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: Setup Node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
with:
cache: yarn
node-version: 18

- name: Install dependencies
run: yarn install --immutable --immutable-cache

- name: Release
env:
NPM_CONFIG_USERCONFIG: /dev/null
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional
run: yarn g:release

22 changes: 22 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semgrep
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: '35 11 * * *'
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- run: semgrep ci
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://uniswap.org"
},
"description": "📚 The Token Lists specification",
"version": "1.0.0-beta.33",
"version": "1.0.0-beta.34",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -29,6 +29,10 @@
"lint": "tsdx lint src test",
"prepublishOnly": "yarn test && yarn build"
},
"publishConfig" : {
"access": "public",
"provenance": true
},
"peerDependencies": {},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion src/tokenlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"type": "string",
"description": "The name of the token",
"minLength": 0,
"maxLength": 40,
"maxLength": 60,
"anyOf": [
{
"const": ""
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/tokenlist.schema.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ Array [
Object {
"instancePath": "/tokens/0/name",
"keyword": "maxLength",
"message": "must NOT have more than 40 characters",
"message": "must NOT have more than 60 characters",
"params": Object {
"limit": 40,
"limit": 60,
},
"schemaPath": "#/properties/name/maxLength",
},
Expand Down
2 changes: 1 addition & 1 deletion test/schema/bigwords.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"timestamp": "2018-11-13T20:20:39+00:00",
"tokens": [
{
"name": "blah blah blah blah blah blah blah blah blah",
"name": "blah blah blah blah blah blah blah blah blah blah blah blah b",
"address": "0x0000000000000000000000000000000000000000",
"chainId": 1,
"decimals": 18,
Expand Down

0 comments on commit da618ff

Please sign in to comment.