Skip to content

Commit

Permalink
chore(yarn): cleanup yarn environment
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Aug 16, 2022
1 parent aa078c1 commit 71871db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
needs: metadata
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.PAT_GPR_ADMIN }}
GITHUB_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ADMIN }}
strategy:
matrix:
Expand All @@ -93,7 +93,7 @@ jobs:
run: yarn --immutable
env:
HUSKY: 0
NODE_AUTH_TOKEN: ${{ env.GH_PAT }}
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
- id: pack
name: Pack project
run: yarn pack -o %s-%v.tgz
Expand All @@ -119,7 +119,7 @@ jobs:
run: gh release create $TAG $ASSET -t=$TAG -F=$NOTES_FILE -p=$PRERELEASE
env:
ASSET: ${{ needs.metadata.outputs.artifact-path }}
GITHUB_TOKEN: ${{ env.GH_PAT }}
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
NOTES_FILE: ./RELEASE_NOTES.md
PRERELEASE: ${{ needs.metadata.outputs.prerelease }}
TAG: ${{ needs.metadata.outputs.tag }}
Expand All @@ -128,7 +128,7 @@ jobs:
needs: [metadata, publish-release]
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.PAT_GPR_ADMIN }}
GITHUB_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ADMIN }}
SCOPE: '@${{ github.repository_owner }}'
strategy:
Expand All @@ -154,7 +154,7 @@ jobs:
run: yarn --immutable
env:
HUSKY: 0
NODE_AUTH_TOKEN: ${{ env.GH_PAT }}
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
- id: pack
name: Pack project
run: yarn pack -o %s-%v.tgz
Expand All @@ -168,7 +168,7 @@ jobs:
env:
ARTIFACT: ${{ needs.metadata.outputs.artifact-path }}
DIST_TAG: ${{ needs.metadata.outputs.dist-tag }}
NODE_AUTH_TOKEN: ${{ env.GH_PAT }}
NODE_AUTH_TOKEN: ${{ env.GITHUB_TOKEN }}
- id: setup-npmrc-npm
name: Setup .npmrc file [NPM]
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
ci:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.PAT_GPR_ADMIN }}
GITHUB_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NODE_AUTH_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ADMIN }}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
integrity-check:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.PAT_GPR_ADMIN }}
GITHUB_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NODE_AUTH_TOKEN: ${{ secrets.PAT_GPR_ADMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ADMIN }}
strategy:
Expand Down
17 changes: 2 additions & 15 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,10 @@ npmPublishAccess: public

npmPublishRegistry: https://npm.pkg.github.com

npmRegistries:
//npm.pkg.github.com:
npmAlwaysAuth: true
npmAuthToken: ${GH_PAT}

//registry.npmjs.org:
npmAlwaysAuth: true
npmAuthToken: ${NPM_TOKEN}

//registry.yarnpkg.org:
npmAlwaysAuth: true
npmAuthToken: ${NPM_TOKEN}

npmRegistryServer: https://registry.yarnpkg.com

npmScopes:
flex-development:
npmAlwaysAuth: true
npmAuthToken: ${GITHUB_TOKEN}
npmRegistryServer: https://npm.pkg.github.com

yarnPath: .yarn/releases/yarn-4.0.0-rc.14.cjs

0 comments on commit 71871db

Please sign in to comment.