@testpersonal/my-new-oss-package 1.0.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +44 -0
- package/index.js +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Release Package
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write # Required for the secure OIDC token generation
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout source code
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Node.js
|
|
19
|
+
uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: '24' # Upgrading to Node 24 baseline
|
|
22
|
+
|
|
23
|
+
- name: Update npm to Latest for OIDC Support
|
|
24
|
+
run: npm install -g npm@latest
|
|
25
|
+
|
|
26
|
+
- name: Create package.json
|
|
27
|
+
run: |
|
|
28
|
+
echo '{
|
|
29
|
+
"name": "@testpersonal/my-new-oss-package",
|
|
30
|
+
"version": "1.0.4",
|
|
31
|
+
"main": "index.js",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/TestDVCS/my-oss-test.git"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"registry": "https://registry.npmjs.org/",
|
|
38
|
+
"access": "public"
|
|
39
|
+
}
|
|
40
|
+
}' > package.json
|
|
41
|
+
echo "console.log('Hello from TestDVCS verified pipeline');" > index.js
|
|
42
|
+
|
|
43
|
+
- name: Publish with Provenance
|
|
44
|
+
run: npm publish --access public --provenance
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello from TestDVCS verified pipeline');
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testpersonal/my-new-oss-package",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.0.4",
|
|
5
4
|
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/TestDVCS/my-oss-test.git"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/",
|
|
11
|
+
"access": "public"
|
|
12
|
+
}
|
|
13
13
|
}
|