@stabilitydao/host 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ name: Publish Package to npmjs
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ # Setup .npmrc file to publish to npm
11
+ - uses: actions/setup-node@v4
12
+ with:
13
+ node-version: '20.x'
14
+ registry-url: 'https://registry.npmjs.org'
15
+ - run: yarn
16
+ - run: yarn build
17
+ - run: yarn publish --access public
18
+ env:
19
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,25 @@
1
+ name: Prettier check
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request: { }
7
+ workflow_dispatch: { }
8
+ jobs:
9
+ run:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
+ - name: Set up Node 18
15
+ uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 18
18
+ - name: Run yarn install
19
+ uses: borales/actions-yarn@v4
20
+ with:
21
+ cmd: install
22
+ - name: Run prettier check
23
+ uses: borales/actions-yarn@v4
24
+ with:
25
+ cmd: prettier . --check
@@ -0,0 +1,29 @@
1
+ name: Test and coverage
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request: { }
7
+ workflow_dispatch: { }
8
+ jobs:
9
+ run:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v4
14
+ - name: Set up Node 18
15
+ uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 18
18
+ - name: Run yarn install
19
+ uses: borales/actions-yarn@v4
20
+ with:
21
+ cmd: install # will run `yarn install` command
22
+ - name: Run tests and collect coverage
23
+ uses: borales/actions-yarn@v4
24
+ with:
25
+ cmd: coverage # will run `yarn coverage` command
26
+ # - name: Upload coverage to Codecov
27
+ # uses: codecov/codecov-action@v4
28
+ # env:
29
+ # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,4 @@
1
+ # Ignore artifacts:
2
+ out
3
+ coverage
4
+ .github
package/.prettierrc ADDED
@@ -0,0 +1 @@
1
+ {}