Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common CI Configuration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Common CI Configuration
Commits
9fdeae2f
Commit
9fdeae2f
authored
9 months ago
by
Bartek Wrona
Browse files
Options
Downloads
Patches
Plain Diff
DIST_TAG value forwarded to npm_generate_version.sh call.
parent
0c772cf4
No related branches found
No related tags found
1 merge request
!57
Improvements in dist-tag detection rules to correctly publish NPM package
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/bash/npm-helpers/npm_build_package.sh
+2
-1
2 additions, 1 deletion
scripts/bash/npm-helpers/npm_build_package.sh
with
2 additions
and
1 deletion
scripts/bash/npm-helpers/npm_build_package.sh
+
2
−
1
View file @
9fdeae2f
...
@@ -8,10 +8,11 @@ REGISTRY_URL="${2:?Missing arg #2 pointing an NPM registry URL}"
...
@@ -8,10 +8,11 @@ REGISTRY_URL="${2:?Missing arg #2 pointing an NPM registry URL}"
SCOPE
=
"
${
3
:?Missing
arg #3 pointing a package scope
}
"
SCOPE
=
"
${
3
:?Missing
arg #3 pointing a package scope
}
"
PROJECT_NAME
=
"
${
4
:?Missing
arg #4 pointing a project name
}
"
PROJECT_NAME
=
"
${
4
:?Missing
arg #4 pointing a project name
}
"
OUTPUT_DIR
=
"
${
5
:?Missing
arg #5 pointing an output directory
}
"
OUTPUT_DIR
=
"
${
5
:?Missing
arg #5 pointing an output directory
}
"
DIST_TAG
=
"
${
6
:-
dev
}
"
pushd
"
${
SOURCE_DIR
}
"
# move to the project directory (where package.json file is located)
pushd
"
${
SOURCE_DIR
}
"
# move to the project directory (where package.json file is located)
"
${
SCRIPTPATH
}
/npm_generate_version.sh"
"
${
SOURCE_DIR
}
"
"
${
REGISTRY_URL
}
"
"
${
SCOPE
}
"
"
${
PROJECT_NAME
}
"
"
${
SCRIPTPATH
}
/npm_generate_version.sh"
"
${
SOURCE_DIR
}
"
"
${
REGISTRY_URL
}
"
"
${
SCOPE
}
"
"
${
PROJECT_NAME
}
"
"
${
DIST_TAG
}
"
npm run build
npm run build
npm pack
--pack-destination
"
${
OUTPUT_DIR
}
"
--json
>
"
${
OUTPUT_DIR
}
/built_package_info.json"
npm pack
--pack-destination
"
${
OUTPUT_DIR
}
"
--json
>
"
${
OUTPUT_DIR
}
/built_package_info.json"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment