File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 39
39
~/.pnpm-store
40
40
D:\.pnpm-store
41
41
./.dub
42
- ~/llvm
43
42
key : " cache-OS:${{ matrix.os }}-D:${{ matrix.d }}-CXX:${{ matrix.compiler }}-${{ hashFiles('./dub.selections.json', './pnpm-lock.yaml')}} }}"
44
43
restore-keys : |
45
44
"cache-OS:${{ matrix.os }}-D:${{ matrix.d }}-CXX:${{ matrix.compiler }}-"
71
70
node-version : ${{ matrix.node }}
72
71
73
72
- name : Setup Pnpm
74
- uses : pnpm/action-setup@v2
73
+ uses : pnpm/action-setup@v4
75
74
with :
76
75
version : ${{ matrix.pnpm }}
77
76
@@ -114,6 +113,7 @@ jobs:
114
113
tar -czf ./dist/minijson-macos-x64.tar.gz -C ./dist/darwin-x64 minijson
115
114
tar -czf ./dist/minijson-macos-arm64.tar.gz -C ./dist/darwin-arm64 minijson
116
115
tar -czf ./dist/minijson-linux-x64.tar.gz -C ./dist/linux-x64 minijson
116
+ ls -l ./dist
117
117
118
118
- name : Draft the release
119
119
if : startsWith(github.ref, 'refs/tags/')
@@ -130,4 +130,6 @@ jobs:
130
130
131
131
- name : Publish to npm
132
132
if : startsWith(github.ref, 'refs/tags/')
133
- run : pnpm publish --access public
133
+ run : pnpm publish
134
+ env :
135
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 24
24
"format" : " prettier -l --cache --write . && pnpm run format.d" ,
25
25
"format.d" : " dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark" ,
26
26
"lint" : " eslint . --fix" ,
27
- "prepublishOnly" : " shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/*.zip ./dist/build.* && chmod +x ./dist/*/minijson" ,
27
+ "prepublishOnly" : " shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/*.zip ./dist/*.tar.* ./dist/ build.* && chmod +x ./dist/*/minijson" ,
28
28
"start.benchmark.js" : " node ./benchmark/js-benchmark.mjs" ,
29
29
"start.benchmark.node" : " node ./benchmark/native-benchmark.mjs" ,
30
30
"start.browser" : " servor ./dist/ --browse --reload" ,
31
31
"start.node" : " node ./dist/node/cli.js" ,
32
32
"start.profile" : " shx rm -rf ./trace.* && pnpm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg" ,
33
33
"test" : " pnpm run build.node && jasmine ./test/index-test.mjs" ,
34
34
"test.format" : " prettier -l --cache . --check" ,
35
- "test.lint" : " eslint ." ,
36
- "zip" : " zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe && zip -9 -j ./dist/minijson-macos-x64.zip ./dist/darwin-x64/minijson && zip -9 -j ./dist/minijson-macos-arm64.zip ./dist/darwin-arm64/minijson && zip -9 -j ./dist/minijson-linux-x64.zip ./dist/linux-x64/minijson "
35
+ "test.lint" : " eslint ."
37
36
},
38
37
"prettier" : " prettier-config-atomic" ,
39
38
"dependencies" : {
You can’t perform that action at this time.
0 commit comments