nw-builder 4.0.6 → 4.0.7

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.
Files changed (49) hide show
  1. package/{.github/LICENSE → LICENSE} +0 -0
  2. package/README.md +6 -6
  3. package/package.json +7 -2
  4. package/src/nwbuild.js +1 -2
  5. package/src/util/notify.js +7 -8
  6. package/src/util/parse.js +1 -1
  7. package/.editorconfig +0 -17
  8. package/.github/CHANGELOG-3.md +0 -209
  9. package/.github/CODE_OF_CONDUCT.md +0 -55
  10. package/.github/ISSUE_TEMPLATE.md +0 -17
  11. package/.github/PULL_REQUEST_TEMPLATE.md +0 -5
  12. package/.github/dependabot.yml +0 -15
  13. package/.github/workflows/cd.yml +0 -19
  14. package/.github/workflows/ci.yml +0 -27
  15. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  16. package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
  17. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  18. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  19. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  20. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  21. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  22. package/docs/fonts/OpenSans-Italic-webfont.svg +0 -1830
  23. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  24. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  25. package/docs/fonts/OpenSans-Light-webfont.svg +0 -1831
  26. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  27. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  28. package/docs/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  29. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  30. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  31. package/docs/fonts/OpenSans-Regular-webfont.svg +0 -1831
  32. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  33. package/docs/global.html +0 -1775
  34. package/docs/index.html +0 -65
  35. package/docs/nwbuild.js.html +0 -253
  36. package/docs/scripts/linenumber.js +0 -25
  37. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  38. package/docs/scripts/prettify/lang-css.js +0 -36
  39. package/docs/scripts/prettify/prettify.js +0 -740
  40. package/docs/styles/jsdoc-default.css +0 -358
  41. package/docs/styles/prettify-jsdoc.css +0 -111
  42. package/docs/styles/prettify-tomorrow.css +0 -132
  43. package/test/e2e/bld.js +0 -38
  44. package/test/e2e/nix.js +0 -11
  45. package/test/e2e/nwapp/index.html +0 -9
  46. package/test/e2e/nwapp/package.json +0 -6
  47. package/test/e2e/osx.js +0 -11
  48. package/test/e2e/win.js +0 -11
  49. package/test/fixture/cacheDir/nw +0 -0
File without changes
package/README.md CHANGED
@@ -35,7 +35,7 @@ nwbuild({
35
35
  // Globing does not matter since a process is spawned against the nwapp directory
36
36
  srcDir: "./nwapp/**/*",
37
37
  mode: "run",
38
- version: "0.70.1",
38
+ version: "latest",
39
39
  flavor: "sdk",
40
40
  });
41
41
  ```
@@ -43,7 +43,7 @@ nwbuild({
43
43
  CLI usage
44
44
 
45
45
  ```shell
46
- nwbuild ./nwapp --mode=run --version=0.70.1 --flavor=sdk
46
+ nwbuild ./nwapp --mode=run --version=latest --flavor=sdk
47
47
  ```
48
48
 
49
49
  package.json usage
@@ -57,7 +57,7 @@ package.json usage
57
57
  "nwbuild": {
58
58
  "srcDir": "./nwapp/**/*",
59
59
  "mode": "run",
60
- "version": "0.70.1",
60
+ "version": "latest",
61
61
  "flavor": "sdk"
62
62
  }
63
63
  }
@@ -73,7 +73,7 @@ import nwbuild from "nw-builder";
73
73
  nwbuild({
74
74
  srcDir: "./nwapp/**/*",
75
75
  mode: "build",
76
- version: "0.70.1",
76
+ version: "latest",
77
77
  flavor: "normal",
78
78
  platform: "linux",
79
79
  arch: "x64",
@@ -84,7 +84,7 @@ nwbuild({
84
84
  CLI usage
85
85
 
86
86
  ```shell
87
- nwbuild ./nwapp --mode=build --version=0.70.1 --flavor=normal --platform=linux --arch=x64 --outDir=./out
87
+ nwbuild ./nwapp --mode=build --version=latest --flavor=normal --platform=linux --arch=x64 --outDir=./out
88
88
  ```
89
89
 
90
90
  package.json usage
@@ -98,7 +98,7 @@ package.json usage
98
98
  "nwbuild": {
99
99
  "srcDir": "./nwapp/**/*",
100
100
  "mode": "build",
101
- "version": "0.70.1",
101
+ "version": "latest",
102
102
  "flavor": "normal",
103
103
  "platform": "linux",
104
104
  "arch": "x64",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-builder",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Build NW.js desktop applications for MacOS, Windows and Linux.",
5
5
  "keywords": [
6
6
  "NW.js",
@@ -18,6 +18,11 @@
18
18
  "default": "./src/nwbuild.js"
19
19
  },
20
20
  "type": "module",
21
+ "files": [
22
+ "./src",
23
+ "./LICENSE"
24
+
25
+ ],
21
26
  "homepage": "https://github.com/nwutils/nw-builder",
22
27
  "repository": {
23
28
  "type": "git",
@@ -29,7 +34,7 @@
29
34
  "docs": "jsdoc ./src/nwbuild.js -d docs",
30
35
  "test:unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
31
36
  "test:e2e": "cd ./test/e2e && node bld.js",
32
- "demo:cli": "cd ./test/e2e && nwbuild ./nwapp/**/* ./node_modules/**/* --mode=build --version=0.70.1 --flavour=normal --platform=win --arch=x64 --outDir=./build",
37
+ "demo:cli": "cd ./test/e2e && node cli.js",
33
38
  "demo:nix": "cd ./test/e2e && node nix.js",
34
39
  "demo:osx": "cd ./test/e2e && node osx.js",
35
40
  "demo:win": "cd ./test/e2e && node win.js"
package/src/nwbuild.js CHANGED
@@ -122,8 +122,7 @@ const nwbuild = async (options) => {
122
122
  // If the nwbuild property exists in srcDir/package.json, then they take precedence
123
123
  if (typeof nwPkg.nwbuild === "object") {
124
124
  options = { ...nwPkg.nwbuild };
125
- }
126
- if (typeof nwPkg.nwbuild === "undefined") {
125
+ } else if (typeof nwPkg.nwbuild === "undefined") {
127
126
  log.debug(`nwbuild property is not defined in package.json`);
128
127
  } else {
129
128
  throw new Error(
@@ -1,16 +1,15 @@
1
- import { resolve } from "node:path";
2
- import { readFile } from "node:fs/promises";
1
+ import { createRequire } from 'node:module';
2
+ const require = createRequire(import.meta.url);
3
3
 
4
4
  import updateNotifier from "update-notifier";
5
5
 
6
+
6
7
  /**
7
8
  * Notify the user if there is a new version of the package available.
8
- *
9
- * @return {Promise<void>}
10
- */
9
+ *
10
+ * @return {Promise<void>}
11
+ */
11
12
  export const notify = async () => {
12
- const packageJson = JSON.parse(
13
- await readFile(resolve("..", "..", "package.json")),
14
- );
13
+ const packageJson = require("../../package.json");
15
14
  updateNotifier({ pkg: packageJson }).notify();
16
15
  };
package/src/util/parse.js CHANGED
@@ -15,7 +15,7 @@ export const parse = async (options, pkg) => {
15
15
  options = { ...pkg.nwbuild };
16
16
  }
17
17
 
18
- options.srcDir = options.srcDir ?? "./";
18
+ options.srcDir = `${cwd()}/${options.srcDir}` ?? `${cwd()}/**/*`;
19
19
  options.mode = options.mode ?? "build";
20
20
  options.version = options.version ?? "latest";
21
21
  options.flavor = options.flavor || "normal";
package/.editorconfig DELETED
@@ -1,17 +0,0 @@
1
- # EditorConfig is awesome: http://EditorConfig.org
2
-
3
- # Top-most EditorConfig file
4
- root = true
5
-
6
- # defaults for all files
7
- [*]
8
- charset = utf-8
9
- end_of_line = lf
10
- indent_size = 2
11
- indent_style = space
12
- insert_final_newline = true
13
- trim_trailing_whitespace = true
14
-
15
- # Markdown files uses two trailing spaces to indicate a <br>
16
- [*.{md,snap}]
17
- trim_trailing_whitespace = false
@@ -1,209 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file and in the [Releases](https://github.com/nwjs-community/nw-builder/blob/develop/releases) section.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/).
7
-
8
- ## [Unreleased]
9
-
10
- ## [3.8.6] - 2022-09-22
11
-
12
- - Fix mac and windows build
13
-
14
- ## [3.8.5] - 2022-09-20
15
-
16
- ### Added
17
-
18
- - `nwbuild` function which accidently got removed.
19
-
20
- ### Changed
21
-
22
- - Update usage docs for `nwbuild`
23
-
24
- ## [3.8.4] - 2022-09-20
25
-
26
- ### Changed
27
-
28
- - Refactor download function
29
-
30
- ## [3.8.3-beta.1]
31
-
32
- ### Changed
33
-
34
- - Check for first instance of `package.json`
35
-
36
- ## [3.8.3] - 2022-08-26
37
-
38
- ### Changed
39
-
40
- - `platforms` argument also accepts comma separated (without spaces) values
41
-
42
- ## [3.8.2] - 2022-08-08
43
-
44
- ### Added
45
-
46
- - Support for multiple file paths
47
-
48
- ## [3.8.1] - 2022-07-18
49
-
50
- ### Changed
51
-
52
- - Fix regex to match `package.json` _files_ only
53
-
54
- ## [3.8.0] - 2022-07-11
55
-
56
- ## Added
57
-
58
- - `mode` option which defaults to run
59
- - `nwbuild` function
60
- - `quiet` option to documentation
61
-
62
- ## Changed
63
-
64
- - CLI options by matching them to the API
65
-
66
- ## [3.7.4] - 2022-06-06
67
-
68
- ## Removed
69
-
70
- - Remove `Version` from `CFBundleShortVersionString` [#576](https://github.com/nwjs-community/nw-builder/pull/576)
71
-
72
- ## [3.7.2] - 2022-06-02
73
-
74
- ## Added
75
-
76
- - Added options `buildType`, `macCredits`, `macPlist`, `zip`, `zipOptions` to CLI [#575](https://github.com/nwjs-community/nw-builder/pull/575)
77
-
78
- ## Changed
79
-
80
- - Update lint command [#575](https://github.com/nwjs-community/nw-builder/pull/575)
81
-
82
- ## [3.7.1] - 2022-06-02
83
-
84
- ## Changed
85
-
86
- - Add `EditorConfig` [#574](https://github.com/nwjs-community/nw-builder/pull/574)
87
- - Fix build step for Windows x64 platform [#572](https://github.com/nwjs-community/nw-builder/pull/572)
88
- - Refactor `platforms` object [#571](https://github.com/nwjs-community/nw-builder/pull/571)
89
-
90
- ## [3.7.0] - 2022-05-30
91
-
92
- ## Added
93
-
94
- - Optional zip file merging for Windows and Linux [#567](https://github.com/nwjs-community/nw-builder/pull/567)
95
- - Add code of conduct [#560](https://github.com/nwjs-community/nw-builder/pull/560)
96
-
97
- ## Changed
98
-
99
- - Update contributing guide [#569](https://github.com/nwjs-community/nw-builder/pull/569)
100
- - Switch from TypeScript to JSDocs [#568](https://github.com/nwjs-community/nw-builder/pull/568)
101
- - Set window icon with `rcedit` [#566](https://github.com/nwjs-community/nw-builder/pull/566)
102
- - Refactor `checkCache` [#565](https://github.com/nwjs-community/nw-builder/pull/565)
103
- - Simplify demo
104
- - Refactor `detectCurrentPlatform` [#564](https://github.com/nwjs-community/nw-builder/pull/564)
105
- - Update dependencies [#561](https://github.com/nwjs-community/nw-builder/pull/561) [#532](https://github.com/nwjs-community/nw-builder/pull/532)
106
-
107
- ## Removed
108
-
109
- ## [3.6.0] - 2022-05-18
110
-
111
- ### Added
112
-
113
- - GitHub Actions for CICD [#552](https://github.com/nwjs-community/nw-builder/pull/552)
114
- - Support multiple locales on OSX [#389](https://github.com/nwjs-community/nw-builder/pull/389)
115
- - Pull request and issue template [#553](https://github.com/nwjs-community/nw-builder/pull/553)
116
-
117
- ### Changed
118
-
119
- - Dependencies [#550](https://github.com/nwjs-community/nw-builder/pull/550)
120
- - Documentation [#540](https://github.com/nwjs-community/nw-builder/pull/540) [#553](https://github.com/nwjs-community/nw-builder/pull/553) [#555](https://github.com/nwjs-community/nw-builder/pull/555)
121
- - Improve run mode by detecting current platform to prevent downloading additional binaries
122
-
123
- ### Removed
124
-
125
- - Travis
126
- - AppVeyor
127
- - JSHint
128
- - EditorConfig
129
-
130
- ## [3.5.7]
131
-
132
- ### Security
133
-
134
- - Source platform overrides module into the project instead of it being an extenal dependency. This helped us get rid of a vulnerable lodash version. See https://github.com/nwjs-community/nw-builder/issues/500
135
-
136
- ## [3.5.1] - 2017-10-19
137
-
138
- ### Added
139
-
140
- - Add option.winVersionString for accurate process name. See https://github.com/nwjs-community/nw-builder/pull/459.
141
-
142
- ### Fixed
143
-
144
- - Small platform overrides fix. See https://github.com/nwjs-community/nw-builder/pull/477/files.
145
-
146
- ## [3.4.1] - 2017-06-05
147
-
148
- ### Removed
149
-
150
- - The `bluebird` dependency. We're now using native promises instead.
151
-
152
- ## [3.4.0] - 2017-05-28
153
-
154
- ### Added
155
-
156
- - If using the package programmatically and it's out of date, a message will be shown (this was always the case for the CLI).
157
- - There is now a README in every directory (with at least a single sentence summarizing the directory) to help with onboarding contributors.
158
-
159
- ### Changed
160
-
161
- - Some dependencies are updated.
162
-
163
- ### Removed
164
-
165
- - `osx32` is removed from the default list of platforms. Thanks to [@preaction](https://github.compreaction) (PR [#439](https://github.com/nwjs-community/nw-builder/pull/439)).
166
- - An unnecessary `rcedit` dependency is removed.
167
-
168
- ### Fixed
169
-
170
- - For Node 7+ users, you won't see a `os.tmpDir` deprecation warning anymore.
171
-
172
- ---
173
-
174
- ## Old format
175
-
176
- - 2017-05-22 `3.2.3` Fix for caching when a version is specified (thanks @piwonesien for the help).
177
- - 2017-05-20 `3.2.2` Fix: when using the `nwbuild` in run mode, the `-p` option was ignored and the current platform was always used.
178
- - 2017-05-16 `3.2.1` Fix: NW.js 0.22.0+ apps didn't open.
179
- - 2017-02-12 `3.2.0` Defaults to HTTPS now, added `manifestUrl` option, and bumped some dependencies.
180
- - 2016-10-09 `3.1.2` Fix for passing array as files option when running app (plus some security fixes).
181
- - 2016-10-09 `3.1.1` Fix for flavor feature when using CLI.
182
- - 2016-09-14 `3.1.0` Ability to select any flavor of NW.js, not just `sdk`.
183
- - 2016-08-28 `3.0.0` bumping graceful-fs-extra dependency to 2.0.0.
184
- - 2016-08-14 `2.2.7` fix for macIcns option when using NW.js 0.12.3
185
- - 2016-07-31 `2.2.6` fix for OS X caching
186
- - 2016-07-03 `2.2.5` fix for update-notifier usage in bin
187
- - 2016-07-03 `2.2.4` fix for syntax error in CLI
188
- - 2016-07-02 `2.2.3` a few small fixes for the run option and more
189
- - 2016-07-02 `2.2.2` fix for cache check of some legacy versions
190
- - 2016-07-02 `2.2.1` supports newer NW.js versions (via http://nwjs.io/versions.json), plus other fixes.
191
- - 2015-12-18 `2.2.0` added `zip` option.
192
- - 2015-12-06 `2.1.0` added `cacheDir` command-line option, fix for no info being passed back, etc.
193
- - 2015-06-28 `2.0.2` put upper bound to semver check for windows.
194
- - 2015-06-14 `2.0.1` safer validation of versions.
195
- - 2015-06-14 `2.0.0` changed to nw-builder, etc.
196
- - 2015-05-05 `1.0.12` when using latest NW.js version, it's first validated that it's not an alpha version (fixes [#222](https://github.com/nwjs/nw-builder/issues/222)). Plus a fix for the `winIco` & `macIcns` command line options
197
- - 2015-01-29 `1.0.8` fixed EMFILE errors (see [#147](https://github.com/nwjs/nw-builder/issues/147) [#148](https://github.com/nwjs/nw-builder/pull/148))
198
- - 2015-01-21 `1.0.7` fixed about screen when copyright is not supplied
199
- - 2015-01-15 `1.0.6` fixed downloads for nw.js version 0.12.0-alpha1
200
- - 2015-01-15 `1.0.5` fixed downloads for NW.js versions < 0.12.0-alpha
201
- - 2014-12-12 `1.0.0` 64-bit support, improved platform-overrides and no more EMFILE errors.
202
- - 2014-12-07 `0.4.0` macPlist CFBundleIdentifier is generated from `package.json` (see [#131](https://github.com/nwjs/nw-builder/pull/131))
203
- - 2014-11-14 `0.3.0` macPlist option improvements (see [#96](https://github.com/nwjs/nw-builder/pull/96))
204
- - 2014-10-30 `0.2.0` adds support for platform-specific manifest overrides (see [#94](https://github.com/nwjs/nw-builder/pull/94))
205
- - 2014-08-19 `0.1.2` adds a progress bar to downloads, fixes downloading through a proxy, fixed winIco, bug fixes
206
- - 2014-08-01 `0.1.0` use app filename for generated executables, optimized version checking, (known issue: `winIco` on windows)
207
- - 2014-07-31 `0.0.4` fixed compatibility with nodewebkit 0.10.0
208
- - 2014-04-20 Added run option, bug fixes
209
- - 2014-04-13 Preview Release
@@ -1,55 +0,0 @@
1
- # "No Ideologies" Code of Conduct
2
-
3
- The following are the guidelines we expect our community members and maintainers to follow.
4
-
5
- ---
6
-
7
- ## Terminology and Scope
8
-
9
- **What defines a "maintainer"?**
10
-
11
- - A maintainer is anyone that interacts with the community on behalf of this project. Amount of code written is not a qualifier. A maintainer may include those who solely help in support roles such as in resolving issues, improving documentation, administrating or moderating forums/chatrooms, or any other non-coding specific roles. Maintainers also include those that are responsible for the building and upkeep of the project.
12
-
13
- **What defines a "community member"?**
14
-
15
- - Anyone interacting with this project directly, including maintainers.
16
-
17
- **What is the scope of these guidelines?**
18
-
19
- - These guidelines apply only to this project and forms of communication directly related to it, such as issue trackers, forums, chatrooms, and in person events specific to this project. If a member is violating these guidelines outside of this project or on other platforms, that is beyond our scope and any grievances should be handled on those platforms.
20
-
21
- **Discussing the guidelines:**
22
-
23
- - Discussions around these guidelines, improving, updating, or altering them, is permitted so long as the discussions do not violate any existing guidelines.
24
-
25
- ---
26
-
27
- ## Guidelines
28
-
29
- ### Guidelines for community members
30
-
31
- This project is technical in nature and not based around any particular non-technical ideology. As such, communication that is based primarily around ideologies unrelated to the technologies used by this repository are not permitted.
32
-
33
- Any discussion or communication that is primarily focused around an ideology, be it about race, gender, politics, religion, or anything else non-technical, is not allowed. Everyone has their own ideological preferences, beliefs, and opinions. We do not seek to marginalize, exclude, or judge anyone for their ideologies. To prevent conflict between those with differing or opposing ideologies, all communication on these subjects are prohibited. Some discussions around these topics may be important, however this project is not the proper channel for these discussions.
34
-
35
- ### Guidelines for maintainers
36
-
37
- - Maintainers must abide by the same rules as all other community members mentioned above. However, in addition, maintainers are held to a higher standard, explained below.
38
- - Maintainers should answer all questions politely.
39
- - If someone is upset or angry about something, it's probably because it's difficult to use, so thank them for bringing it to your attention and address ways to solve the problem. Maintainers should focus on the content of the message, and not on how it was delivered.
40
- - A maintainer should seek to update members when an issue they brought up is resolved.
41
-
42
- ---
43
-
44
- ## Appropriate response to violations
45
-
46
- How to respond to a community member or maintainer violating a guideline.
47
-
48
- 1. If an issue is created that violates a guideline a maintainer should close and lock the issue, explaining "This issue is in violation of our code of conduct. Please review it before posting again." with a link to this document.
49
- 1. If a member repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license.
50
- 1. If a maintainer is in violation of a guideline, they should be informed of such with a link to this document. If additional actions are required of the maintainer but not taken, then other maintainers should be informed of these inactions.
51
- 1. If a maintainer repeatedly violates the guidelines established in this document, they should be politely warned that continuing to violate the rules may result in being banned from the community. This means revoking access and support to interactions relating directly to the project (issue trackers, chatrooms, forums, in person events, etc.). However, they may continue to use the technology in accordance with its license. In addition, future contributions to this project may be ignored as well.
52
-
53
- ---
54
-
55
- Based on version 1.0.3 from https://github.com/CodifiedConduct/coc-no-ideologies
@@ -1,17 +0,0 @@
1
- ### Issue Type
2
-
3
- - [ ] Bug Fix
4
- - [ ] Feature
5
- - [ ] Other
6
-
7
- ### Current/Missing Behaviour
8
-
9
- ### Expected/Proposed Behaviour
10
-
11
- ### Additional Info
12
-
13
- - Operating System:
14
- - Node version:
15
- - NW.js version:
16
- - Repro link:
17
- - ...
@@ -1,5 +0,0 @@
1
- Fixes: #
2
-
3
- ### Changes
4
-
5
- - ...
@@ -1,15 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: "npm" # See documentation for possible values
9
- directory: "/" # Location of package manifests
10
- schedule:
11
- interval: "daily"
12
- - package-ecosystem: "github-actions" # See documentation for possible values
13
- directory: ".github/" # Location of package manifests
14
- schedule:
15
- interval: "daily"
@@ -1,19 +0,0 @@
1
- name: cd
2
- on:
3
- push:
4
- branches:
5
- - main
6
-
7
- jobs:
8
- publish:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v3
12
- - uses: actions/setup-node@v3
13
- with:
14
- node-version: "18"
15
-
16
- - run: npm ci
17
- - uses: JS-DevTools/npm-publish@v1
18
- with:
19
- token: ${{ secrets.NPM_TOKEN }}
@@ -1,27 +0,0 @@
1
- name: ci
2
- on:
3
- pull_request:
4
- branches:
5
- - main
6
- workflow_dispatch:
7
- branches:
8
- - main
9
-
10
- concurrency:
11
- group: ${{ github.ref }}
12
- cancel-in-progress: true
13
-
14
- jobs:
15
- test:
16
- strategy:
17
- matrix:
18
- os: [macos-latest, ubuntu-latest, windows-latest]
19
- node-version: [16, 18]
20
- runs-on: ${{ matrix.os }}
21
- steps:
22
- - uses: actions/checkout@v3
23
- - run: npm ci
24
- - run: npm run format
25
- - run: npm run lint
26
- - run: npm run test:unit
27
- - run: npm run test:e2e