Skip to content

Commit 9364ed0

Browse files
committed
Add npm publish
1 parent 5c1e294 commit 9364ed0

File tree

5 files changed

+128
-126
lines changed

5 files changed

+128
-126
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This workflow will run tests using node and then publish a package to npm when a release is created
2+
# Uses OIDC trusted publishing - no npm token required!
3+
# For more information see: https://docs.npmjs.com/trusted-publishers/
4+
5+
name: Node.js Package
6+
7+
on:
8+
release:
9+
types: [created]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 24
19+
cache: 'npm'
20+
21+
- run: npm ci
22+
- name: Install Playwright Browsers
23+
run: npx playwright install --with-deps chromium
24+
- run: npm run build --if-present
25+
- run: npm test
26+
27+
- name: Upload build artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: servicestack-vue
31+
path: |
32+
./dist/index.d.ts
33+
./dist/servicestack-vue.mjs
34+
./dist/servicestack-vue.min.mjs
35+
./dist/servicestack-vue.umd.cjs
36+
37+
publish-npm:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
permissions:
41+
id-token: write # Required for OIDC authentication
42+
contents: read
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version: 24
48+
registry-url: https://registry.npmjs.org/
49+
- run: npm ci
50+
- run: npm publish --provenance --access public

.github/workflows/publish.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

package-lock.json

Lines changed: 77 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@vue/tsconfig": "^0.8.1",
4848
"autoprefixer": "^10.4.21",
4949
"npm-run-all": "^4.1.5",
50+
"playwright": "^1.56.1",
5051
"postcss": "^8.5.6",
5152
"postcss-cli": "^11.0.1",
5253
"shx": "^0.4.0",

0 commit comments

Comments
 (0)