Skip to content

Commit 580977a

Browse files
Fix create release pipeline (#155)
* Fix create release pipeline * Use different format * Add new line * Fix * use EOF * Revert comments
1 parent fb0b29d commit 580977a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,12 @@ jobs:
121121
- name: Publish to npm
122122
run: |
123123
rm .yarnrc
124-
sed -i '/hoprassociation/d' .npmrc
125-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
124+
cat > .npmrc <<EOF
125+
registry=https://registry.npmjs.org/
126+
//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
127+
//registry.npmjs.org/:always-auth=true
128+
EOF
129+
cat .npmrc
126130
yarn publish --non-interactive --registry=https://registry.npmjs.org/ --access public --no-git-tag-version --tag release-candidate
127131
git checkout .npmrc .yarnrc
128132
@@ -147,7 +151,7 @@ jobs:
147151
email: ${{ secrets.ZULIP_EMAIL }}
148152
organization-url: 'https://hopr.zulipchat.com'
149153
type: 'stream'
150-
to: 'HOPRd'
151-
topic: 'Releases'
154+
to: 'Products'
155+
topic: 'main'
152156
content: |
153157
I'm thrilled to inform that version **${{ vars.NPM_PACKAGE_NAME }}@${{ steps.changelog.outputs.current_version }}** has been released. See [ChangeLog](https://github.com/${{ github.repository }}/releases/tag/v${{ steps.changelog.outputs.current_version }})

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
//europe-west3-npm.pkg.dev/hoprassociation/npm/:always-auth=true
33

44
registry=https://registry.npmjs.org/
5-
//registry.npmjs.org/:always-auth=false
5+
//registry.npmjs.org/:always-auth=false

0 commit comments

Comments
 (0)