Skip to content

Commit 0c17127

Browse files
Remove unnecessary JS-DevTools/npm-publish GitHub Action
1 parent dec5d84 commit 0c17127

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
cache: yarn
2424
node-version-file: .nvmrc
25+
registry-url: https://registry.npmjs.org/
2526

2627
- name: Yarn Install
2728
run: yarn
@@ -35,8 +36,14 @@ jobs:
3536
- name: Typescript build
3637
run: yarn build
3738

38-
- name: Publish to npm, publish pre-release as beta
39-
uses: JS-DevTools/npm-publish@v4
40-
with:
41-
token: ${{ secrets.NPM_TOKEN }}
42-
tag: ${{ github.event.release.prerelease && 'beta' || 'latest' }}
39+
- name: Publish npm package
40+
if: ${{ !github.event.release.prerelease }}
41+
run: npm publish --tag latest
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
45+
- name: Publish npm package (pre-release)
46+
if: ${{ github.event.release.prerelease }}
47+
run: npm publish --tag beta
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,8 @@
128128
"react-dom": ">=18.2.0",
129129
"tslib": ">=2.8.0"
130130
},
131-
"packageManager": "[email protected]"
131+
"packageManager": "[email protected]",
132+
"publishConfig": {
133+
"access": "public"
134+
}
132135
}

0 commit comments

Comments
 (0)