@vb-test-org/hello-world-npm 1.0.6 → 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.6",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -1,31 +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
- workflow_call:
10
- secrets:
11
- NPM_TOKEN:
12
- required: true
13
-
14
- # permissions:
15
- # id-token: write
16
- # contents: read
17
-
18
- jobs:
19
- publish-npm:
20
- runs-on: ubuntu-latest
21
- steps:
22
- - uses: actions/checkout@v4
23
- - uses: actions/setup-node@v4
24
- with:
25
- node-version: '22'
26
- registry-url: 'https://registry.npmjs.org'
27
- - run: npm ci
28
- - run: npm publish --access public
29
- env:
30
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}