Skip to content

Commit

Permalink
Fix sdk deployment (#18)
Browse files Browse the repository at this point in the history
* add yarn.lock

* Update build-deploy-obol-sdk.yml

* Update package.json

* update version

* add git tag and release

* changelog

---------

Co-authored-by: HananINouman <[email protected]>
  • Loading branch information
LukeHackett12 and HananINouman authored Feb 27, 2024
1 parent 68ec522 commit 2420a0b
Show file tree
Hide file tree
Showing 7 changed files with 9,815 additions and 22,133 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/build-deploy-obol-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.head.label == 'obol-sdk:release')
runs-on: ubuntu-latest

steps:
Expand All @@ -18,12 +19,43 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@obolnetwork'

- run: npm ci
- name: Configure git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm run build
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- run: npm run ds:release:patch
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1

############# TAG RELEASE ##############
- name: "Push tag v${{ steps.package-version.outputs.current-version }}"
uses: rickstaa/action-create-tag@v1
id: tag_version
with:
tag: "v${{ steps.package-version.outputs.current-version }}"

############# GITHUB RELEASE ##############
- name: "Create a GitHub release v${{ steps.package-version.outputs.current-version }}"
uses: ncipollo/release-action@v1
with:
tag: "v${{ steps.package-version.outputs.current-version }}"
name: "Release v${{ steps.package-version.outputs.current-version }}"
body: |
## Release notes:
${{ steps.extract-release-notes.outputs.release_notes }}
############# NPM RELEASE ##############
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn run generate-typedoc
- run: yarn run ds:release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Changelog


## [1.0.12](https://github.com/ObolNetwork/obol-sdk/compare/68ec522...v1.0.12) (2024-02-27)

### Bug Fixes

* Fixing release pipeline


All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Loading

0 comments on commit 2420a0b

Please sign in to comment.