Skip to content

Commit 0649549

Browse files
authored
Merge pull request #7 from omnia-network/release/0.4.0
release: 0.4.0
2 parents 1a9a38f + afd9eb9 commit 0649549

File tree

8 files changed

+1732
-1852
lines changed

8 files changed

+1732
-1852
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
name: Release ic-websocket-sdk-js
1+
name: Publish ic-websocket-sdk-js
22

3-
# only run when the tests complete
3+
# only run when a release is published
44
on:
5-
workflow_run:
6-
workflows: [ic-websocket-sdk-js tests]
7-
types:
8-
- completed
9-
branches:
10-
- main
5+
release:
6+
types: [published]
117

128
jobs:
139
publish:
1410
runs-on: ubuntu-latest
15-
# only run if the tests were successful
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17-
outputs:
18-
type: ${{ steps.npm-publish.outputs.type }}
19-
version: ${{ steps.npm-publish.outputs.version }}
2011
steps:
2112
- uses: actions/checkout@v4
2213
- uses: actions/setup-node@v4
@@ -28,30 +19,3 @@ jobs:
2819
id: npm-publish
2920
with:
3021
token: ${{ secrets.NPM_TOKEN }}
31-
32-
tag:
33-
needs: publish
34-
runs-on: ubuntu-latest
35-
if: ${{ needs.publish.outputs.type }}
36-
outputs:
37-
version: ${{ steps.tag_version.outputs.new_tag }}
38-
steps:
39-
- name: Checkout
40-
uses: actions/checkout@v4
41-
- name: Bump version and push tag
42-
id: tag_version
43-
uses: mathieudutour/[email protected]
44-
with:
45-
github_token: ${{ secrets.GITHUB_TOKEN }}
46-
custom_tag: ${{ needs.publish.outputs.version }}
47-
48-
release:
49-
needs: tag
50-
runs-on: ubuntu-latest
51-
steps:
52-
- name: Checkout
53-
uses: actions/checkout@v4
54-
- name: Release
55-
uses: softprops/action-gh-release@v1
56-
with:
57-
tag_name: ${{ needs.tag.outputs.version }}

jest.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ const config: Config = {
155155
testEnvironmentOptions: {
156156
// set the url to the local IC replica
157157
url: "http://127.0.0.1:4943",
158+
// see https://mswjs.io/docs/migrations/1.x-to-2.x#cannot-find-module-mswnode-jsdom
159+
customExportConditions: [''],
158160
},
159161

160162
// Adds a location field to test results

0 commit comments

Comments
 (0)