react-elmish 2.1.0 → 3.1.0
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.
- package/.github/workflows/{publish.yml → release.yml} +19 -16
- package/.releaserc.json +3 -0
- package/README.md +435 -208
- package/dist/Cmd.d.ts +5 -0
- package/dist/Cmd.js +12 -1
- package/dist/ElmComponent.d.ts +5 -2
- package/dist/ElmComponent.js +1 -5
- package/dist/ElmUtilities.d.ts +7 -0
- package/dist/ElmUtilities.js +11 -2
- package/dist/Testing/index.d.ts +3 -1
- package/dist/Testing/index.js +10 -1
- package/dist/index.d.ts +5 -6
- package/dist/index.js +7 -9
- package/dist/legacy/useElmish.d.ts +15 -0
- package/dist/legacy/useElmish.js +135 -0
- package/dist/legacy/useElmishMap.d.ts +15 -0
- package/dist/legacy/useElmishMap.js +137 -0
- package/dist/useElmish.d.ts +22 -3
- package/dist/useElmish.js +52 -7
- package/package.json +11 -9
- package/.github/workflows/main.yml +0 -41
- package/dist/useElmishMap.d.ts +0 -3
- package/dist/useElmishMap.js +0 -123
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
name:
|
|
2
|
-
|
|
1
|
+
name: Release
|
|
3
2
|
on:
|
|
4
3
|
push:
|
|
5
|
-
|
|
6
|
-
-
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
7
6
|
|
|
8
7
|
jobs:
|
|
9
8
|
test:
|
|
9
|
+
name: Test
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- name: Checkout
|
|
13
13
|
uses: actions/checkout@v2
|
|
14
|
-
- name:
|
|
14
|
+
- name: Setup Node.js
|
|
15
15
|
uses: actions/setup-node@v2
|
|
16
16
|
with:
|
|
17
|
-
|
|
17
|
+
node-version: 'lts/*'
|
|
18
18
|
- name: Test
|
|
19
19
|
run: |
|
|
20
20
|
npm install
|
|
21
|
+
npm run lint
|
|
21
22
|
npm run test
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
release:
|
|
25
|
+
name: Release
|
|
24
26
|
needs: test
|
|
25
27
|
runs-on: ubuntu-latest
|
|
26
28
|
steps:
|
|
27
29
|
- name: Checkout
|
|
28
30
|
uses: actions/checkout@v2
|
|
29
|
-
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
- name: Setup Node.js
|
|
30
34
|
uses: actions/setup-node@v2
|
|
31
35
|
with:
|
|
32
|
-
|
|
36
|
+
node-version: 'lts/*'
|
|
37
|
+
- name: Install dependencies
|
|
38
|
+
run: npm ci --ignore-scripts
|
|
33
39
|
- name: Build
|
|
34
|
-
run:
|
|
35
|
-
|
|
36
|
-
npm run build
|
|
37
|
-
- name: Publish
|
|
38
|
-
run: |
|
|
39
|
-
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
|
40
|
-
npm publish --ignore-scripts
|
|
40
|
+
run: npm run build
|
|
41
|
+
- name: Release
|
|
41
42
|
env:
|
|
43
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
42
44
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
45
|
+
run: npx semantic-release
|
package/.releaserc.json
ADDED