Skip to content

Commit 7bb02fa

Browse files
committed
publish to npm since github pkgs is apparently DoA
1 parent 8be42d5 commit 7bb02fa

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/deno-to-node.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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");

.github/workflows/cd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- edited
88

99
permissions:
10-
packages: write
1110
contents: read
1211

1312
concurrency:
@@ -16,23 +15,24 @@ concurrency:
1615

1716
jobs:
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:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

3233
Or with [Deno]:

0 commit comments

Comments
 (0)