Skip to content

Commit 301f869

Browse files
author
Nicolò Maria Mezzopera
committed
feat: gitlab npm auto publish with dry-run
1 parent 3eb559c commit 301f869

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,21 @@ build site:
1717
unit test:
1818
stage: test
1919
script:
20+
- npm run lint
2021
- npm run test
2122
artifacts:
2223
paths:
2324
- dist/
2425
- node_modules/
25-
- package.json
26+
- package.json
27+
28+
29+
publish:
30+
stage: deploy
31+
only:
32+
- tags
33+
- triggers
34+
script:
35+
- npm run build
36+
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
37+
- npm publish --dry-run

0 commit comments

Comments
 (0)