Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
fix: devnet build with latest sdk (#274)
Browse files Browse the repository at this point in the history
I was under the assumption that the setup node action creates a .npmrc & .yarnrc file in the working directory, but I was mistaken. To fix this, I added a .npmrc template to the repository, with which I overwrite the .npmrc in the workflow
  • Loading branch information
rflechtner authored Jul 3, 2020
1 parent 65c4a79 commit 1cb752a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/aws-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

- name: set up .npmrc to point to github packages
run: mv -f .npmrc.github .npmrc

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -51,13 +54,6 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: set up .npmrc & .yarnrc to connect to github packages
uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://npm.pkg.github.com
scope: '@kiltprotocol'

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
Expand Down
3 changes: 3 additions & 0 deletions .npmrc.github
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@kiltprotocol:registry=https://npm.pkg.github.com
always-auth=true
2 changes: 1 addition & 1 deletion Dockerfile.devnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG NODE_AUTH_TOKEN
WORKDIR /app

COPY package.json yarn.lock ./
COPY .npmrc .yarnrc ./
COPY .npmrc ./
RUN yarn upgrade --scope @kiltprotocol --latest

COPY . ./
Expand Down

0 comments on commit 1cb752a

Please sign in to comment.