File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ await build({
4848 package : {
4949 name : "@teaxyz/lib" ,
5050 version,
51- description : "pkg primitives" ,
51+ description : "pkging primitives" ,
5252 license : "Apache-2.0" ,
5353 repository : {
5454 type : "git" ,
@@ -64,9 +64,6 @@ await build({
6464 devDependencies : {
6565 "@types/fs-ext" : "^2"
6666 } ,
67- publishConfig : {
68- registry : "https://npm.pkg.github.com"
69- } ,
7067 } ,
7168 postBuild ( ) {
7269 Deno . copyFileSync ( "LICENSE.txt" , "dist/LICENSE.txt" ) ;
Original file line number Diff line number Diff line change 77 - edited
88
99permissions :
10- packages : write
1110 contents : read
1211
1312concurrency :
@@ -16,23 +15,24 @@ concurrency:
1615
1716jobs :
1817 build :
18+ if : ${{ github.event.release.prerelease }}
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v3
2222 - uses : teaxyz/setup@v0
2323
24- - uses : actions/setup-node@v3
24+ # if we don’t do this the npm publish step doesn’t work
25+ - uses : actions/setup-node@v2
2526 with :
26- node-version : 16
27- registry-url : https://npm.pkg.github.com/
27+ registry-url : https://registry.npmjs.org
2828
2929 - name : build
3030 run : .github/deno-to-node.ts ${{ github.event.release.tag_name }}
3131
32- - run : npm publish
32+ - run : npm publish --access public
3333 working-directory : dist
3434 env :
35- NODE_AUTH_TOKEN : ${{github.token }}
35+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
3636
3737 publish :
3838 permissions :
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ have no effect on the wider system without you or your user needing to install
2727
2828``` sh
2929$ npm install @teaxyz/lib
30+ # ^^ https://npmjs.com/@teaxyz/lib
3031```
3132
3233Or with [ Deno] :
You can’t perform that action at this time.
0 commit comments