Skip to content

Commit ddf202a

Browse files
committed
update architecture for 'npm'
1 parent 7ac2ba0 commit ddf202a

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 'latest'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Publish release
25+
run: npm publish --access public

.github/workflows/release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,3 @@ jobs:
6161
run: |
6262
git push https://github.com/${{github.repository}} master
6363
git push https://github.com/${{github.repository}} "${{steps.version.outputs.current-version}}"
64-
65-
- name: Publish release
66-
run: npm publish --access public
67-
env:
68-
NODE_AUTH_TOKEN: ${{secrets.npm}}

0 commit comments

Comments
 (0)