Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
feat: support NPM_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
erzz committed Dec 22, 2021
1 parent b545ce0 commit 6d0494c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
password:
required: false
description: 'The password to use when authenticating with the registry'
npm-token:
required: false
description: 'If an NPM_TOKEN env var is required for build then add it here'

jobs:
build:
Expand All @@ -46,6 +49,10 @@ jobs:
with:
name: env-file

- name: Export variables
run: |
echo "NPM_TOKEN=${{ secrets.npm-token }}" >> $GITHUB_ENV
- name: Build & Push Image
id: build-image
uses: mr-smithers-excellent/docker-build-push@v5
Expand Down

0 comments on commit 6d0494c

Please sign in to comment.