Skip to content

Commit cf4a826

Browse files
squash!
1 parent 2d993e6 commit cf4a826

3 files changed

Lines changed: 370 additions & 307 deletions

File tree

.github/workflows/NPM.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: NPM
2+
3+
concurrency:
4+
group: NPM-${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
permissions:
8+
security-events: write
9+
contents: write
10+
pull-requests: write
11+
12+
on:
13+
workflow_dispatch:
14+
release:
15+
types: [created]
16+
workflow_call:
17+
18+
jobs:
19+
Publish:
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
id-token: write
25+
26+
steps:
27+
- uses: actions/checkout@v4.1.1
28+
29+
- uses: actions/setup-node@v4.0.1
30+
with:
31+
node-version: "18"
32+
registry-url: "https://registry.npmjs.org"
33+
34+
- run: npm install -g npm
35+
36+
- name: Publish .
37+
continue-on-error: true
38+
working-directory: .
39+
run: |
40+
npm install --legacy-peer-deps
41+
npm publish --legacy-peer-deps --provenance
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/Node.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ jobs:
8585
- run: pnpm run build
8686
working-directory: .
8787

88-
- uses: actions/upload-artifact@v4.1.0
88+
- uses: actions/upload-artifact@v4.3.0
89+
with:
90+
name: .-Node-${{ matrix.node-version }}-Target
91+
path: ./Target
92+
93+
- run: pnpm run prepublishOnly
94+
working-directory: .
95+
96+
- uses: actions/upload-artifact@v4.3.0
8997
with:
9098
name: .-Node-${{ matrix.node-version }}-Target
9199
path: ./Target

0 commit comments

Comments
 (0)