Skip to content

Commit

Permalink
Try to use token
Browse files Browse the repository at this point in the history
  • Loading branch information
lookasc committed Nov 22, 2023
1 parent a1727a3 commit 35c974f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -21,6 +23,11 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 8.10.2

- name: Configure Phrase GitHub packages registry url & auth token
run: |
pnpm config set --global "npmScopes[phrase].npmRegistryServer" "https://npm.pkg.github.com"
pnpm config set --global "npmScopes[phrase].npmAuthToken" "\${NODE_AUTH_TOKEN}"
- name: Install and Build 🔧
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -18,6 +20,11 @@ jobs:
with:
version: 8.10.2

- name: Configure Phrase GitHub packages registry url & auth token
run: |
pnpm config set --global "npmScopes[phrase].npmRegistryServer" "https://npm.pkg.github.com"
pnpm config set --global "npmScopes[phrase].npmAuthToken" "\${NODE_AUTH_TOKEN}"
- name: Install dependencies
run: pnpm install

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -21,6 +23,11 @@ jobs:
with:
version: 8.10.2

- name: Configure Phrase GitHub packages registry url & auth token
run: |
pnpm config set --global "npmScopes[phrase].npmRegistryServer" "https://npm.pkg.github.com"
pnpm config set --global "npmScopes[phrase].npmAuthToken" "\${NODE_AUTH_TOKEN}"
- name: Install dependencies
run: pnpm install

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -18,6 +20,11 @@ jobs:
with:
version: 8.10.2

- name: Configure Phrase GitHub packages registry url & auth token
run: |
pnpm config set --global "npmScopes[phrase].npmRegistryServer" "https://npm.pkg.github.com"
pnpm config set --global "npmScopes[phrase].npmAuthToken" "\${NODE_AUTH_TOKEN}"
- name: Install dependencies
run: pnpm install

Expand Down

0 comments on commit 35c974f

Please sign in to comment.