From 0494ca03e9426b3c083bfad482f34db78927ff31 Mon Sep 17 00:00:00 2001 From: mr-uniswap <144828035+mr-uniswap@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:27:50 -0400 Subject: [PATCH 1/3] npm deploy (#26) --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a9e9ea8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +iname: Release +on: + # manual trigger + workflow_dispatch: + +jobs: + deploy: + name: release + runs-on: + group: npm-deploy + environment: + name: release + 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: Release + env: + NPM_CONFIG_USERCONFIG: /dev/null + NPM_TOKEN: ${{ env.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional + run: yarn g:release From 0952443bbc2433d0c6072d0e46bcad5c42720807 Mon Sep 17 00:00:00 2001 From: mr-uniswap <144828035+mr-uniswap@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:30:35 -0400 Subject: [PATCH 2/3] chore: remove old deploy (#27) * npm deploy * remove old release --- .github/workflows/release.yaml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index c922d48..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release - -on: - workflow_dispatch: # manually - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/setup - - - run: yarn test - if: success() - - - run: yarn release - if: success() - env: - NPM_CONFIG_USERCONFIG: /dev/null - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 4a3c04c0a28d2a6453354d2614e88a954f57740d Mon Sep 17 00:00:00 2001 From: mr-uniswap <144828035+mr-uniswap@users.noreply.github.com> Date: Tue, 2 Jul 2024 23:37:44 -0400 Subject: [PATCH 3/3] chore: remove typo in deploy (#28) * npm deploy * remove old release * chore: remove typo --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9e9ea8..11de12b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -iname: Release +name: Release on: # manual trigger workflow_dispatch: