react-elmish 1.4.4

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,40 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v2
18
+ - name: SetupNode
19
+ uses: actions/setup-node@v2
20
+ with:
21
+ node-version: 14
22
+ - name: Test
23
+ run: |
24
+ npm install
25
+ npm run test
26
+
27
+ build:
28
+ needs: test
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v2
33
+ - name: SetupNode
34
+ uses: actions/setup-node@v2
35
+ with:
36
+ node-version: 14
37
+ - name: Build
38
+ run: |
39
+ npm ci
40
+ npm run build
@@ -0,0 +1,42 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v2
14
+ - name: SetupNode
15
+ uses: actions/setup-node@v2
16
+ with:
17
+ node-version: 14
18
+ - name: Test
19
+ run: |
20
+ npm install
21
+ npm run test
22
+
23
+ publish:
24
+ needs: test
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - name: Checkout
28
+ uses: actions/checkout@v2
29
+ - name: SetupNode
30
+ uses: actions/setup-node@v2
31
+ with:
32
+ node-version: 14
33
+ - name: Build
34
+ run: |
35
+ npm ci --ignore-scripts
36
+ npm run build
37
+ - name: Publish
38
+ run: |
39
+ npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
40
+ npm publish --ignore-scripts
41
+ env:
42
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}