@vb-test-org/hello-world-npm 1.0.7 → 1.0.8

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.
@@ -0,0 +1,22 @@
1
+ on:
2
+ workflow_call:
3
+ inputs:
4
+ node_version:
5
+ description: 'Node Version'
6
+ required: true
7
+ type: string
8
+
9
+ jobs:
10
+ publish-npm:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ id-token: write
14
+ contents: read
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v4
18
+ with:
19
+ node-version: ${{ inputs.node_version }}
20
+ registry-url: 'https://registry.npmjs.org'
21
+ - run: npm ci
22
+ - run: npm publish --provenance --tag=latest --access public
@@ -0,0 +1,15 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ install:
9
+ name: Publish
10
+ uses: ./.github/workflows/publish.yml
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+ with:
15
+ node_version: 24
package/index.js CHANGED
@@ -2,4 +2,8 @@
2
2
  function helloNpm() {
3
3
  return "Hello NPM!";
4
4
  }
5
+ let x = 1
6
+ console.log(x)
7
+ x = "a"
8
+ console.log(x)
5
9
  module.exports = helloNpm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vb-test-org/hello-world-npm",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -1,24 +0,0 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- push:
8
- branches: [main]
9
-
10
- permissions:
11
- id-token: write
12
- contents: read
13
-
14
- jobs:
15
- publish-npm:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- - uses: actions/setup-node@v4
20
- with:
21
- node-version: '24'
22
- registry-url: 'https://registry.npmjs.org'
23
- - run: npm ci
24
- - run: npm publish --access public