File tree Expand file tree Collapse file tree 4 files changed +17
-10
lines changed Expand file tree Collapse file tree 4 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Publish package to GitHub Packages
1
+ name : Publish package to NPM
2
2
on :
3
3
release :
4
4
types : [published]
@@ -10,14 +10,14 @@ jobs:
10
10
packages : write
11
11
steps :
12
12
- uses : actions/checkout@v3
13
- # Setup .npmrc file to publish to GitHub Packages
13
+ # Setup .npmrc file to publish to NPM
14
14
- uses : actions/setup-node@v3
15
15
with :
16
16
node-version : " 16.x"
17
- registry-url : " https://npm.pkg.github.com "
17
+ registry-url : ' https://registry.npmjs.org '
18
18
- run : npm ci
19
19
- run : npm run proto
20
20
- run : npm run build
21
- - run : npm publish --tag latest
21
+ - run : npm publish --tag latest --access public
22
22
env :
23
- NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 22
22
uses : actions/setup-node@v3
23
23
with :
24
24
node-version : ${{ matrix.node-version }}
25
+ registry-url : ' https://registry.npmjs.org'
25
26
- run : npm ci
26
27
- run : npm run proto
27
28
- run : npm run verify
36
37
- name : Publish snapshot
37
38
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
38
39
env :
39
- NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
40
41
run : |
41
42
# We're using 0.0.0 to avoid this version to be higher than released versions.
42
43
# To use it:
45
46
# We use dist-tag dev for the snapshot releases, see https://docs.npmjs.com/cli/v9/commands/npm-dist-tag for more info
46
47
# A snapshot MUST not be published with latest tag (omitting --tag defaults to latest) to avoid users to install snapshot releases
47
48
# when using npm install
48
- npm publish --tag dev
49
+ npm publish --tag dev --access public
49
50
50
51
e2e :
51
52
permissions :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
}
22
22
},
23
23
"publishConfig" : {
24
- "@restatedev:registry" : " https://npm.pkg.github.com "
24
+ "@restatedev:registry" : " https://registry.npmjs.org "
25
25
},
26
26
"type" : " commonjs" ,
27
27
"main" : " dist/public_api.js" ,
63
63
"ts-node-dev" : " ^2.0.0" ,
64
64
"typescript" : " ^4.9.5" ,
65
65
"express" : " *"
66
+ },
67
+ "bugs" : {
68
+ "url" : " https://github.com/restatedev/sdk-typescript/issues"
69
+ },
70
+ "homepage" : " https://github.com/restatedev/sdk-typescript#readme" ,
71
+ "directories" : {
72
+ "example" : " examples" ,
73
+ "test" : " test"
66
74
}
67
75
}
You can’t perform that action at this time.
0 commit comments