Skip to content

Commit 7fc23ea

Browse files
committed
ci: add the e2e-verdaccio skeleton as a GitHub action
1 parent 200266a commit 7fc23ea

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "com.example.demo",
3+
"version": "1.0.0"
4+
}

.github/workflows/e2e-verdaccio.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: verdaccio e2e demo
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: setup verdaccio
9+
services:
10+
verdaccio:
11+
image: verdaccio/verdaccio:5
12+
ports:
13+
- 4873:4873
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "22.x"
21+
- name: login
22+
run: npx npm-cli-login -u tester -p 123456 -e [email protected] -r http://localhost:4873
23+
- name: publish
24+
run: npm publish --registry http://localhost:4873
25+
working-directory: .github/verdaccio/com.example.demo
26+
- name: check
27+
run: npm info com.example.demo --json --registry http://localhost:4873
28+
working-directory: .github/verdaccio/com.example.demo

0 commit comments

Comments
 (0)