Skip to content

Commit c3fcfb4

Browse files
author
Fabiana Severin
committed
Changing npm publishing
1 parent 201b966 commit c3fcfb4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ jobs:
9898
- name: Setup NPM authentication
9999
run: |
100100
NPM_TOKEN=$(aws secretsmanager get-secret-value --secret-id aws-lambda-runtimes/github/nodejs/npm-token --query SecretString --output text)
101-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
101+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
102+
chmod 0600 .npmrc
102103
103104
- name: Determine version and package name
104105
id: version
@@ -118,9 +119,9 @@ jobs:
118119
- name: Publish to npm
119120
run: |
120121
if [[ "${{ steps.version.outputs.is_rc }}" == "true" ]]; then
121-
npm publish aws-lambda-ric-*.tgz --tag rc
122+
npm publish aws-lambda-ric-*.tgz --tag rc --access=public
122123
else
123-
npm publish aws-lambda-ric-*.tgz
124+
npm publish aws-lambda-ric-*.tgz --access=public
124125
fi
125126
126127
- name: Create GitHub Release

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "aws-lambda-ric",
2+
"name": "icecream-shop",
33
"version": "3.3.0",
44
"description": "AWS Lambda Runtime Interface Client for NodeJs",
55
"homepage": "https://github.com/aws/aws-lambda-nodejs-runtime-interface-client",
@@ -35,7 +35,7 @@
3535
"author": "AWS Lambda",
3636
"license": "Apache-2.0",
3737
"bin": {
38-
"aws-lambda-ric": "bin/index.mjs"
38+
"icecream-shop": "bin/index.mjs"
3939
},
4040
"husky": {
4141
"hooks": {

0 commit comments

Comments
 (0)