ci: add build job
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
image: node:latest
|
image: node:latest
|
||||||
|
|
||||||
stages:
|
build:
|
||||||
- deploy
|
script:
|
||||||
|
- yarn install
|
||||||
|
- yarn build
|
||||||
|
artifacts:
|
||||||
|
path:
|
||||||
|
- dist/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
needs: [ build ]
|
||||||
script:
|
script:
|
||||||
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
|
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
|
||||||
- npm publish
|
- npm publish
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@arnef/vite-plugin-gettext-loader",
|
"name": "@arnef/vite-plugin-gettext-loader",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user