File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 37
37
run : deno publish --allow-dirty
38
38
39
39
- name : Build for NPM
40
- run : deno run -A build.ts
40
+ run : deno task build
41
+
42
+ - name : Set up Node
43
+ uses : actions/setup-node@v4
44
+ with :
45
+ node-version : " 20.x"
46
+ registry-url : " https://registry.npmjs.org"
41
47
42
48
- name : NPM (dry run)
43
49
if : github.event_name == 'push'
46
52
- name : NPM (real)
47
53
if : github.event_name == 'release'
48
54
run : npm publish --provenance --access public
55
+ env :
56
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ console.log(
11
11
12
12
const pkg = JSON . parse ( Deno . readTextFileSync ( './deno.json' ) )
13
13
14
- if ( Deno . statSync ( './package.json' ) . isFile ) {
14
+ try {
15
15
Deno . removeSync ( './package.json' )
16
+ } catch { // NOOP
16
17
}
17
18
18
19
const packageJson = {
You can’t perform that action at this time.
0 commit comments