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
ac350708
Commit
ac350708
authored
1 month ago
by
Mateusz Tyszczak
Committed by
Bartek Wrona
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Use pnpm for publishing and packing purposes instead of npm
parent
19a39f4d
No related branches found
Branches containing commit
No related tags found
1 merge request
!72
Support for common definition of pnpm config like also sharing helper scripts used while building NPM applications
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/bash/npm-helpers/npm_pack_package.sh
+1
-1
1 addition, 1 deletion
scripts/bash/npm-helpers/npm_pack_package.sh
scripts/bash/npm-helpers/npm_publish.sh
+1
-1
1 addition, 1 deletion
scripts/bash/npm-helpers/npm_publish.sh
with
2 additions
and
2 deletions
scripts/bash/npm-helpers/npm_pack_package.sh
+
1
−
1
View file @
ac350708
...
...
@@ -15,7 +15,7 @@ pushd "${SOURCE_DIR}" # move to the project directory (where package.json file i
"
${
SCRIPTPATH
}
/npm_generate_version.sh"
"
${
SOURCE_DIR
}
"
"
${
REGISTRY_URL
}
"
"
${
SCOPE
}
"
"
${
PROJECT_NAME
}
"
"
${
COMMIT_REF_PROTECTED
}
"
"
${
COMMIT_TAG
}
"
npm pack
--pack-destination
"
${
OUTPUT_DIR
}
"
--json
>
"
${
OUTPUT_DIR
}
/built_package_info.json"
p
npm pack
--pack-destination
"
${
OUTPUT_DIR
}
"
--json
>
"
${
OUTPUT_DIR
}
/built_package_info.json"
BUILT_PACKAGE_NAME
=
$(
jq
-r
.[].filename
"
${
OUTPUT_DIR
}
/built_package_info.json"
)
{
echo
PACKAGE_SOURCE_DIR
=
"
${
SOURCE_DIR
}
"
...
...
This diff is collapsed.
Click to expand it.
scripts/bash/npm-helpers/npm_publish.sh
+
1
−
1
View file @
ac350708
...
...
@@ -40,7 +40,7 @@ else
set
-e
echo
"Publishing
${
NAME
}
@
${
VERSION
}
to tag
${
PACKAGE_DIST_TAG
}
"
# We are going to repack the tarball as there are registry-dependent data in each job for package.json
npm publish
--access
=
public
--tag
"
${
PACKAGE_DIST_TAG
}
"
p
npm publish
--access
=
public
--tag
"
${
PACKAGE_DIST_TAG
}
"
fi
popd
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