Skip to content

Commit 77f83e0

Browse files
committed
add moleculemaker registry
1 parent 36dcbfa commit 77f83e0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040

4141
- uses: actions/checkout@v3
4242

43+
- name: Authenticate with private NPM package
44+
run: |
45+
echo "//hub.chemaxon.com/artifactory/api/npm/npm/:_auth=${{ secrets.NPM_TOKEN }}" > $HOME/.npmrc
46+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> $HOME/.npmrc
47+
echo "npmrc_path=$HOME/.npmrc" >> "$GITHUB_ENV"
48+
4349
- name: Docker meta
4450
id: meta
4551
uses: docker/metadata-action@v4

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/
2+
@moleculemaker:registry=https://npm.pkg.github.com/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1818
COPY package.json package-lock.json ./
1919

2020
# Install all the dependencies
21-
RUN npm install
21+
RUN --mount=type=secret,id=NPMRC npm install
2222

2323
# Add the source code to app
2424
COPY angular.json entrypoint.sh tsconfig*.json package*.json proxy.conf.json tailwind.config.js ./

0 commit comments

Comments
 (0)