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

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,21 @@
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
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: ${{ inputs.node_version }}
17
+ registry-url: 'https://registry.npmjs.org'
18
+ - name: Build
19
+ run: npm ci
20
+ - name: Release
21
+ 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 Build
10
+ uses: ./.github/workflows/publish.yml
11
+ with:
12
+ node_version: 24
13
+ permissions:
14
+ id-token: write
15
+ contents: read
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.9",
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