File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 94
94
contents : write
95
95
id-token : write
96
96
steps :
97
+ - uses : actions/checkout@v4
98
+
99
+ - name : Setup Node
100
+ uses : actions/setup-node@v4
101
+ with :
102
+ node-version-file : " .nvmrc"
103
+ registry-url : ' https://registry.npmjs.org'
104
+
105
+ - name : Setup Pnpm
106
+ uses : pnpm/action-setup@v4
107
+
108
+ - name : Install dependencies
109
+ run : pnpm install
110
+
97
111
- name : Merge Artifacts
98
112
uses : actions/upload-artifact/merge@v4
99
113
with :
@@ -135,21 +149,7 @@ jobs:
135
149
test -f ./dist/linux-x64/minijson || exit 1
136
150
test -f ./dist/win32-x64/minijson.exe || exit 1
137
151
138
- - uses : actions/checkout@v4
139
-
140
- - name : Setup Node
141
- uses : actions/setup-node@v4
142
- with :
143
- node-version-file : " .nvmrc"
144
- registry-url : ' https://registry.npmjs.org'
145
-
146
- - name : Setup Pnpm
147
- uses : pnpm/action-setup@v4
148
-
149
- - name : Install dependencies
150
- run : pnpm install
151
-
152
152
- name : Publish to npm
153
- run : pnpm publish --provenance --access public --no-git-checks
153
+ run : npm publish --provenance --access public
154
154
env :
155
155
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 15
15
"minijson" : " dist/cli.js"
16
16
},
17
17
"files" : [
18
- " dist/ " ,
18
+ " dist" ,
19
19
" src/node"
20
20
],
21
21
"scripts" : {
31
31
"format" : " prettier -l --cache --write . && pnpm run format.d" ,
32
32
"format.d" : " dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark" ,
33
33
"lint" : " eslint . --fix" ,
34
- "prepublishOnly" : " shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/*.zip ./dist/*.tar.* ./dist/build.* " ,
34
+ "prepublishOnly" : " shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/*.zip ./dist/*.tar.*" ,
35
35
"start.benchmark.js" : " node ./benchmark/js-benchmark.mjs" ,
36
36
"start.benchmark.node" : " node ./benchmark/native-benchmark.mjs" ,
37
37
"start.browser" : " servor ./dist/ --browse --reload" ,
You can’t perform that action at this time.
0 commit comments