Skip to content

Commit

Permalink
Merge pull request #7 from omnia-network/release/0.4.0
Browse files Browse the repository at this point in the history
release: 0.4.0
  • Loading branch information
ilbertt authored Jul 21, 2024
2 parents 1a9a38f + afd9eb9 commit 0649549
Show file tree
Hide file tree
Showing 8 changed files with 1,732 additions and 1,852 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
name: Release ic-websocket-sdk-js
name: Publish ic-websocket-sdk-js

# only run when the tests complete
# only run when a release is published
on:
workflow_run:
workflows: [ic-websocket-sdk-js tests]
types:
- completed
branches:
- main
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
# only run if the tests were successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
type: ${{ steps.npm-publish.outputs.type }}
version: ${{ steps.npm-publish.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -28,30 +19,3 @@ jobs:
id: npm-publish
with:
token: ${{ secrets.NPM_TOKEN }}

tag:
needs: publish
runs-on: ubuntu-latest
if: ${{ needs.publish.outputs.type }}
outputs:
version: ${{ steps.tag_version.outputs.new_tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ needs.publish.outputs.version }}

release:
needs: tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.tag.outputs.version }}
2 changes: 2 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ const config: Config = {
testEnvironmentOptions: {
// set the url to the local IC replica
url: "http://127.0.0.1:4943",
// see https://mswjs.io/docs/migrations/1.x-to-2.x#cannot-find-module-mswnode-jsdom
customExportConditions: [''],
},

// Adds a location field to test results
Expand Down
Loading

0 comments on commit 0649549

Please sign in to comment.