From 2a3947ca10b9b01b4c7278f393ed897f0ebf8190 Mon Sep 17 00:00:00 2001 From: Luiz Gomes <8636507+LuizAsFight@users.noreply.github.com> Date: Thu, 23 Jan 2025 02:21:18 -0300 Subject: [PATCH] chore: change env name npm (#461) --- .github/pull_request_template.md | 20 ++++++++------------ .github/workflows/pr-release.yaml | 9 +++++---- .github/workflows/release-npm-latest.yaml | 2 +- .github/workflows/release-npm-preview.yaml | 4 ++-- .github/workflows/release-npm.yaml | 6 +++--- .github/workflows/unpublish-npm.yaml | 2 +- 6 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5de5f515..0797b014 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,7 +1,7 @@ # Summary @@ -12,14 +12,10 @@ Many times this section is not needed as the closed issues themselves explains t # Checklist -- [ ] I've added error handling for all actions/requests, and verified how this error will show on UI. -- [ ] I've reviewed all the copies changed/added in this PR (use AI if needs help) -- [ ] I've included the reference to the issues being closed (Github and/or Linear) -- [ ] I've changed the Docs to reflect my changes (project setup, run commands, etc…) -- [ ] I've put docs links where it may be helpful. -- [ ] -- [ ] I've added error handling for all actions/requests, and verified how it will show on UI (or verifying error handling was needed) -- [ ] I've reviewed all the copies changed/added in this PR, using AI if needed (or no copy changes were made) -- [ ] I've included the reference to the Github and/or Linear issues being closed (or no issues to reference) -- [ ] I've changed the Docs to reflect my changes (or no doc updates were needed) -- [ ] I've put docs links where it may be helpful (or no doc links were needed) +- [ ] I've added error handling for all actions/requests, and verified how this error will show on UI. (or there was no error handling) +- [ ] I've reviewed all the copy changed/added in this PR, using AI if needed. (or there was no copy changes) +- [ ] I've included the reference to the issues being closed from Github and/or Linear (or there was no issues) +- [ ] I've changed the Docs to reflect my changes (or it was not needed) +- [ ] I've put docs links where it may be helpful (or it was not needed) +- [ ] I checked the resulting UI both in Light and Dark mode (or no UI changes were made) +- [ ] I **reviewed** the **entire PR** myself (preferably, on GH UI) diff --git a/.github/workflows/pr-release.yaml b/.github/workflows/pr-release.yaml index acf3787f..15e33e16 100644 --- a/.github/workflows/pr-release.yaml +++ b/.github/workflows/pr-release.yaml @@ -8,7 +8,7 @@ jobs: name: 'Release PR to npm' runs-on: buildjet-4vcpu-ubuntu-2204 # Comment if:false to enable release PR to npm - if: false + # if: false permissions: write-all steps: - uses: actions/checkout@v3 @@ -23,10 +23,11 @@ jobs: pnpm-version: 9.5.0 - uses: FuelLabs/github-actions/setups/npm@master with: - npm-token: ${{ secrets.NPM_TOKEN }} + npm-token: ${{ secrets.NPM_TOKEN_CONNECTORS }} - name: Build run: pnpm build + env: NEXT_PUBLIC_PROVIDER_URL: "http://localhost:4000/v1/graphql" NEXT_PUBLIC_WC_PROJECT_ID: e01471314fc69cc4efba6dce12dfd710 NEXT_PUBLIC_CHAIN_ID_NAME: testnet @@ -41,7 +42,7 @@ jobs: published_version=$(echo "$changetsets" | grep -oP '@\K([0-9]+\.){2}[0-9]+-pr-${{ env.PR_NUMBER }}-\d+' | head -1) echo "published_version=$published_version" >> $GITHUB_OUTPUT env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_CONNECTORS }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} @@ -50,4 +51,4 @@ jobs: message: | This PR is published in NPM with version **${{ steps.release.outputs.published_version }}** env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\ diff --git a/.github/workflows/release-npm-latest.yaml b/.github/workflows/release-npm-latest.yaml index d03b8bdb..f8c00bce 100644 --- a/.github/workflows/release-npm-latest.yaml +++ b/.github/workflows/release-npm-latest.yaml @@ -25,7 +25,7 @@ jobs: pnpm-version: 9.5.0 - uses: FuelLabs/github-actions/setups/npm@master with: - npm-token: ${{ secrets.NPM_TOKEN }} + npm-token: ${{ secrets.NPM_TOKEN_CONNECTORS }} - name: Collect current version run: | diff --git a/.github/workflows/release-npm-preview.yaml b/.github/workflows/release-npm-preview.yaml index aa6f5c3e..2e753c5c 100644 --- a/.github/workflows/release-npm-preview.yaml +++ b/.github/workflows/release-npm-preview.yaml @@ -26,7 +26,7 @@ jobs: pnpm-version: 9.5.0 - uses: FuelLabs/github-actions/setups/npm@master with: - npm-token: ${{ secrets.NPM_TOKEN }} + npm-token: ${{ secrets.NPM_TOKEN_CONNECTORS }} - name: Build Lib run: pnpm build @@ -42,7 +42,7 @@ jobs: changetsets=$(pnpm changeset publish --tag preview) echo "BUILD_VERSION=$(pnpm -s packages:version)" >> $GITHUB_ENV env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_CONNECTORS }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Comment release package name to PR diff --git a/.github/workflows/release-npm.yaml b/.github/workflows/release-npm.yaml index 9dca7548..c38d212a 100644 --- a/.github/workflows/release-npm.yaml +++ b/.github/workflows/release-npm.yaml @@ -27,7 +27,7 @@ jobs: pnpm-version: 9.5.0 - uses: FuelLabs/github-actions/setups/npm@master with: - npm-token: ${{ secrets.NPM_TOKEN }} + npm-token: ${{ secrets.NPM_TOKEN_CONNECTORS }} - name: Bump and Collect Version run: | @@ -57,7 +57,7 @@ jobs: githubTagName: v${{ env.BUILD_VERSION }} env: GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN_CONNECTORS }} - name: Release to @main tag if: steps.changesets.outputs.published != 'true' @@ -66,5 +66,5 @@ jobs: pnpm changeset version --snapshot main pnpm changeset publish --tag main env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN_CONNECTORS }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/unpublish-npm.yaml b/.github/workflows/unpublish-npm.yaml index 94d74aa7..1c5e32bd 100644 --- a/.github/workflows/unpublish-npm.yaml +++ b/.github/workflows/unpublish-npm.yaml @@ -24,7 +24,7 @@ jobs: pnpm-version: 9.5.0 - uses: FuelLabs/github-actions/setups/npm@master with: - npm-token: ${{ secrets.NPM_TOKEN }} + npm-token: ${{ secrets.NPM_TOKEN_CONNECTORS }} - run: | node ./scripts/unpublish.js env: