Skip to content

Commit

Permalink
feat(ci): add github token for NPM private packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagith committed Nov 28, 2024
1 parent 39dc7f5 commit cd5fa74
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: '🔒 setup'
name: '🛠️ Install'
description: 'Setup Node, pnpm & install dependencies'

inputs:
token:
description: Auth Token for GitHub Packages

runs:
using: 'composite'
steps:
Expand All @@ -15,6 +19,12 @@ runs:
node-version-file: package.json
cache: pnpm

- name: GitHub Packages Auth
shell: bash
if: ${{ inputs.token != '' }}
run: |
echo "//npm.pkg.github.com/:_authToken=${{ inputs.token }}" >> ~/.npmrc
- name: Install dependencies
shell: bash
run: pnpm install
run: pnpm install --frozen-lockfile

0 comments on commit cd5fa74

Please sign in to comment.