solid-panes 3.5.16 → 3.5.18

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,25 +1,64 @@
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
1
4
  name: CI
2
5
 
3
6
  on:
4
- - push
5
- - pull_request
7
+ push:
8
+ branches:
9
+ - "**"
10
+ pull_request:
11
+ branches:
12
+ - "**"
13
+ workflow_dispatch:
6
14
 
7
15
  jobs:
8
- test:
16
+ build:
17
+
9
18
  runs-on: ubuntu-latest
19
+
10
20
  strategy:
11
21
  matrix:
12
- node-version:
22
+ node-version:
13
23
  - 12.x
14
24
  - 14.x
15
25
  - 16.x
26
+
16
27
  steps:
17
28
  - uses: actions/checkout@v2
18
29
  - name: Use Node.js ${{ matrix.node-version }}
19
30
  uses: actions/setup-node@v1
20
31
  with:
21
32
  node-version: ${{ matrix.node-version }}
22
- - run: npm install -g npm # for issues with executables on npm 7
23
33
  - run: npm ci
34
+ - run: npm run lint --if-present
24
35
  - run: npm test
25
- - run: npm run build
36
+ - run: npm run build --if-present
37
+ - name: Save build
38
+ if: matrix.node-version == '14.x'
39
+ uses: actions/upload-artifact@v2
40
+ with:
41
+ name: build
42
+ path: |
43
+ .
44
+ !node_modules
45
+ retention-days: 1
46
+ npm-publish-build:
47
+ needs: build
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/download-artifact@v2
51
+ with:
52
+ name: build
53
+ - uses: actions/setup-node@v1
54
+ with:
55
+ node-version: 14.x
56
+ - uses: rlespinasse/github-slug-action@v3.x
57
+ - name: Append commit hash to package version
58
+ run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
59
+ - name: Disable pre- and post-publish actions
60
+ run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
61
+ - uses: JS-DevTools/npm-publish@v1
62
+ with:
63
+ token: ${{ secrets.NPM_TOKEN }}
64
+ tag: ${{ env.GITHUB_REF_SLUG }}