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