You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-12
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,15 @@ This is used by [clearlydefined/service](https://github.com/clearlydefined/servi
6
6
7
7
## Install
8
8
9
+
Package is hosted in GitHub packages
10
+
See [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-packages-from-other-organizations) for details on how to use
11
+
9
12
```
10
-
npm install @clearlydefined/spdx
13
+
npm install clearlydefined/spdx
11
14
```
12
15
13
16
```js
14
-
constSPDX=require('@clearlydefined/spdx')
17
+
constSPDX=require('spdx')
15
18
16
19
SPDX.parse('MIT')
17
20
SPDX.stringify({ license:'MIT' })
@@ -33,16 +36,8 @@ npm test
33
36
34
37
## Release
35
38
* Merge pull request to this repo (make sure that it updates the version of this package - similar to [this pull request](https://github.com/clearlydefined/spdx/pull/12).)
36
-
*Release the new package to npm (the npm login credentials are in the ClearlyDefined Azure keyvault, if you need access or help with this reach out to @nellshamrell)
39
+
*Create a relese on the Repository to run the [publish workflow](.github/workflows/publish-package.yml)
37
40
38
-
```
39
-
cd spdx
40
-
git checkout master
41
-
git fetch origin
42
-
git rebase origin/master
43
-
npm login
44
-
npm publish
45
-
```
46
41
47
-
* Update [clearlydefined/service](https://github.com/clearlydefined/service) to use the new version (similar to [this pull request](https://github.com/clearlydefined/service/pull/832))
42
+
* Update [clearlydefined/service](https://github.com/clearlydefined/service) to use the new version
0 commit comments