Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing release pipeline #10

Merged
merged 5 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
echo "[Download package](https://www.npmjs.com/package/${{ vars.NPM_PACKAGE_NAME }}/v/${PACKAGE_VERSION})" >> changelog.md
cat changelog.md
echo "release_version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}

- name: Create Release
uses: softprops/action-gh-release@v2
Expand All @@ -85,8 +87,19 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ steps.setup.outputs.access_token }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: ./yarn.lock
registry-url: https://registry.npmjs.org

- name: Publish to npm
run: yarn publish --no-git-tag-version --registry https://registry.npmjs.org --tag latest
run: |
sed -i '/hoprassociation/d' .npmrc
yarn publish --no-git-tag-version --tag latest
git checkout .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -102,6 +115,7 @@ jobs:
with:
token: ${{ secrets.GH_RUNNER_TOKEN }}
commit-message: 'Bump to version ${{ steps.bump.outputs.bump_version }}'
base: main
title: 'Open release ${{ steps.bump.outputs.bump_version }}'
body: 'The scope of this PR is to bump the new release ${{ steps.bump.outputs.bump_version }}'
branch: bot/open-${{ inputs.release_type }}-${{ steps.bump.outputs.bump_version }}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hoprnet/uhttp-crypto",
"version": "1.0.2",
"version": "1.0.3",
"description": "u(nlinked)HTTP crypto protocol",
"author": "HOPR Association",
"main": "./build/index.js",
Expand Down Expand Up @@ -46,7 +46,6 @@
"@noble/hashes": "^1.3.3"
},
"publishConfig": {
"access": "public",
"registry": "https://europe-west3-npm.pkg.dev/hoprassociation/npm"
"access": "public"
}
}