Skip to content

Commit 681b735

Browse files
committed
ci: fixed package publish
1 parent 531e92a commit 681b735

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/on-commit-main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
test:
1010
uses: ./.github/workflows/task-test.yml
1111

12-
publish-package:
13-
needs: test
14-
uses: ./.github/workflows/task-publish-package.yml
15-
secrets:
16-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
# publish-package:
13+
# needs: test
14+
# uses: ./.github/workflows/task-publish-package.yml
15+
# secrets:
16+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v5
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v5
17+
with:
18+
node-version: 24
19+
registry-url: https://registry.npmjs.org/
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Publish to npm
26+
run: npm publish --access public
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)