Skip to content

Commit 452674c

Browse files
committed
fix publish script
1 parent 5d8fdc2 commit 452674c

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.github/workflows/publish-to-npm-on-new-release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 16
14+
node-version: 20
1515
registry-url: https://registry.npmjs.org
1616
- name: Update version
1717
run: |
@@ -23,20 +23,13 @@ jobs:
2323
- name: Build and Test
2424
run: npm i && npm run build && npm run test
2525
- name: Upload coverage reports to Codecov
26-
uses: codecov/codecov-action@v3
26+
uses: codecov/codecov-action@v4
2727
env:
2828
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2929
- name: Publish to npm
3030
run: npm run publish-package
3131
env:
3232
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
3333

34-
- uses: actions/setup-node@v3
35-
with:
36-
registry-url: https://npm.pkg.github.com/
37-
- name: Publish to GitHub Public Repository
38-
run: npm run publish-gpr
39-
env:
40-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4134
- name: push version bump back to repo
4235
run: git push origin main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esbuild-react18-useclient",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "esbuild plugin for compiling libraries compatible with React 18 server and client component, Nextjs13, Remix, etc.",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)