Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
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
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
D-PTB
DCC
Development
dcc-js
Commits
ed275376
Verified
Commit
ed275376
authored
1 year ago
by
Jan Loewe
Browse files
Options
Downloads
Patches
Plain Diff
fix(readme): update publishing guide to yarn
parent
e3aa5b20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#22131
passed
1 year ago
Stage: .pre
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.yarnrc.yml
+6
-0
6 additions, 0 deletions
.yarnrc.yml
README.md
+8
-14
8 additions, 14 deletions
README.md
with
14 additions
and
14 deletions
.yarnrc.yml
+
6
−
0
View file @
ed275376
nodeLinker
:
node-modules
npmPublishRegistry
:
"
https://gitlab1.ptb.de/api/v4/projects/105/packages/npm/"
npmScopes
:
d-ptb
:
npmRegistryServer
:
"
https://gitlab1.ptb.de/api/v4/packages/npm/"
This diff is collapsed.
Click to expand it.
README.md
+
8
−
14
View file @
ed275376
...
...
@@ -64,25 +64,19 @@ See [the Licence](LICENSE.md) for the specific language governing permissions an
## Publishing this package
Add the following to your
`.npmrc`
.
```
message="chore(release): bump version to v%s"
# if you want to sign the tag
sign-git-tag=true
@d-ptb:registry=https://gitlab1.ptb.de/api/v4/packages/npm/
# the following auth token should be a private one with write permission for the package registry
//gitlab1.ptb.de/api/v4/projects/:_authToken=<token>
//gitlab1.ptb.de/api/v4/packages/npm/:_authToken=<token>
//gitlab1.ptb.de/api/v4/projects/105/packages/npm/:_authToken=<token>
Add the following to your
`.yarnrc.yml`
in your
**home folder**
. Do not commit your token!
```
yml
npmRegistries
:
https://gitlab1.ptb.de/api/v4/projects/105/packages/npm/
:
npmAlwaysAuth
:
true
npmAuthToken
:
"
<token>"
```
### Publishing workflow
1.
Commit all changes
2.
Bump the version with
`
npm
version [major | minor | patch | ...]`
2.
Bump the version with
`
yarn
version [major | minor | patch | ...]`
3.
Push all commits to the remote
4.
Publish the package with
`npm publish`
4.
Publish the package with
`
yarn
npm publish`
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