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.
@@ -1,42 +1,45 @@
1
- name: Publish
2
-
1
+ name: Release
3
2
  on:
4
3
  push:
5
- tags:
6
- - v*
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: SetupNode
14
+ - name: Setup Node.js
15
15
  uses: actions/setup-node@v2
16
16
  with:
17
- node-version: 16
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
- publish:
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
- - name: SetupNode
31
+ with:
32
+ fetch-depth: 0
33
+ - name: Setup Node.js
30
34
  uses: actions/setup-node@v2
31
35
  with:
32
- node-version: 16
36
+ node-version: 'lts/*'
37
+ - name: Install dependencies
38
+ run: npm ci --ignore-scripts
33
39
  - 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
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
@@ -0,0 +1,3 @@
1
+ {
2
+ "branches": ["main"]
3
+ }